Обновление
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Struchkov Mark 2024-09-05 00:46:14 +03:00
parent 943e711540
commit 902c62d678
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C
3 changed files with 11 additions and 11 deletions

View File

@ -14,16 +14,13 @@ image_pull_secrets:
- DOCKER_AUTH - DOCKER_AUTH
steps: steps:
- name: clone
image: alpine/git
commands:
- git clone https://git.struchkov.dev/upagge/digital-garden.git .
- git checkout $DRONE_COMMIT
- name: build site - name: build site
# https://hub.docker.com/r/library/docker # https://hub.docker.com/r/library/docker
pull: always pull: always
image: docker.struchkov.dev/quartz:develop image: docker.struchkov.dev/quartz:develop
commands: commands:
- git clone https://git.struchkov.dev/upagge/digital-garden.git .
- git checkout $DRONE_COMMIT
- cp -r ./* /usr/src/app/content - cp -r ./* /usr/src/app/content
- cp ./.quartz/quartz.config.ts /usr/src/app/ - cp ./.quartz/quartz.config.ts /usr/src/app/
- cp ./.quartz/quartz.layout.ts /usr/src/app/ - cp ./.quartz/quartz.layout.ts /usr/src/app/
@ -58,6 +55,6 @@ steps:
# drone sign --save upagge/digital-garden # drone sign --save upagge/digital-garden
--- ---
kind: signature kind: signature
hmac: b25014857bd72eadbc70b8675405d942d7785453c12e73264b2e6df2c1b23e15 hmac: 90605476d9b2ed341b303e776d398892f0f9dbb7d9d96c864735d635ec27486f
... ...

View File

@ -19,7 +19,7 @@ const config: QuartzConfig = {
fontOrigin: "googleFonts", fontOrigin: "googleFonts",
cdnCaching: true, cdnCaching: true,
typography: { typography: {
header: "Schibsted Grotesk", header: "Open Sans Condensed",
body: "Inter", body: "Inter",
code: "IBM Plex Mono", code: "IBM Plex Mono",
}, },
@ -57,7 +57,7 @@ const config: QuartzConfig = {
}), }),
Plugin.SyntaxHighlighting({ Plugin.SyntaxHighlighting({
theme: { theme: {
light: "ayu-dark", light: "github-light",
dark: "vitesse-dark", dark: "vitesse-dark",
}, },
keepBackground: false, keepBackground: false,
@ -85,5 +85,4 @@ const config: QuartzConfig = {
], ],
}, },
} }
export default config export default config

View File

@ -6,6 +6,7 @@ export const sharedPageComponents: SharedLayout = {
head: Component.Head(), head: Component.Head(),
header: [], header: [],
afterBody: [ afterBody: [
Component.Backlinks(),
Component.Remark({ Component.Remark({
options: { options: {
host: 'https://comments.struchkov.dev', host: 'https://comments.struchkov.dev',
@ -22,7 +23,10 @@ export const sharedPageComponents: SharedLayout = {
}, },
}), }),
} }
const githubSourceConfig = {
repoLink: "https://github.com/upagge/digital-garden",
branch: "master"
}
// components for pages that display a single page (e.g. a single note) // components for pages that display a single page (e.g. a single note)
export const defaultContentPageLayout: PageLayout = { export const defaultContentPageLayout: PageLayout = {
beforeBody: [ beforeBody: [
@ -67,7 +71,7 @@ export const defaultContentPageLayout: PageLayout = {
}, },
}), }),
Component.DesktopOnly(Component.TableOfContents()), Component.DesktopOnly(Component.TableOfContents()),
Component.Backlinks(), Component.GithubSource(githubSourceConfig),
], ],
} }