From 902c62d67829938dd839da702e53baee9baed503 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Thu, 5 Sep 2024 00:46:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 9 +++------ .quartz/quartz.config.ts | 5 ++--- .quartz/quartz.layout.ts | 8 ++++++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index 64af0aa8..63f1c9b1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,16 +14,13 @@ image_pull_secrets: - DOCKER_AUTH steps: - - name: clone - image: alpine/git - commands: - - git clone https://git.struchkov.dev/upagge/digital-garden.git . - - git checkout $DRONE_COMMIT - name: build site # https://hub.docker.com/r/library/docker pull: always image: docker.struchkov.dev/quartz:develop commands: + - git clone https://git.struchkov.dev/upagge/digital-garden.git . + - git checkout $DRONE_COMMIT - cp -r ./* /usr/src/app/content - cp ./.quartz/quartz.config.ts /usr/src/app/ - cp ./.quartz/quartz.layout.ts /usr/src/app/ @@ -58,6 +55,6 @@ steps: # drone sign --save upagge/digital-garden --- kind: signature -hmac: b25014857bd72eadbc70b8675405d942d7785453c12e73264b2e6df2c1b23e15 +hmac: 90605476d9b2ed341b303e776d398892f0f9dbb7d9d96c864735d635ec27486f ... diff --git a/.quartz/quartz.config.ts b/.quartz/quartz.config.ts index 1c6ef87d..05170933 100644 --- a/.quartz/quartz.config.ts +++ b/.quartz/quartz.config.ts @@ -19,7 +19,7 @@ const config: QuartzConfig = { fontOrigin: "googleFonts", cdnCaching: true, typography: { - header: "Schibsted Grotesk", + header: "Open Sans Condensed", body: "Inter", code: "IBM Plex Mono", }, @@ -57,7 +57,7 @@ const config: QuartzConfig = { }), Plugin.SyntaxHighlighting({ theme: { - light: "ayu-dark", + light: "github-light", dark: "vitesse-dark", }, keepBackground: false, @@ -85,5 +85,4 @@ const config: QuartzConfig = { ], }, } - export default config diff --git a/.quartz/quartz.layout.ts b/.quartz/quartz.layout.ts index 1c7009e3..a57a976c 100644 --- a/.quartz/quartz.layout.ts +++ b/.quartz/quartz.layout.ts @@ -6,6 +6,7 @@ export const sharedPageComponents: SharedLayout = { head: Component.Head(), header: [], afterBody: [ + Component.Backlinks(), Component.Remark({ options: { 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) export const defaultContentPageLayout: PageLayout = { beforeBody: [ @@ -67,7 +71,7 @@ export const defaultContentPageLayout: PageLayout = { }, }), Component.DesktopOnly(Component.TableOfContents()), - Component.Backlinks(), + Component.GithubSource(githubSourceConfig), ], }