From 74993d19b72aee78e89b0b13b8f1d4a72fe5fe29 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Tue, 5 Jul 2022 15:42:57 -0700 Subject: [PATCH] docs + fix: broken partial and description of enableGitHubEdit --- content/notes/config.md | 5 +++++ data/config.yaml | 2 +- layouts/partials/github.html | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/content/notes/config.md b/content/notes/config.md index 056ae36a..e29afda3 100644 --- a/content/notes/config.md +++ b/content/notes/config.md @@ -49,6 +49,11 @@ enableContextualBacklinks: true # whether to show a section of recent notes on the home page enableRecentNotes: false +# whether to display and 'edit' button next to the last edited field +# that links to github +enableGitHubEdit: false +GitHubLink: https://github.com/jackyzha0/quartz/tree/hugo/content + # page description used for SEO description: Host your second brain and digital garden for free. Quartz features extremely fast full-text search, diff --git a/data/config.yaml b/data/config.yaml index ce9ff0ab..bae38dba 100644 --- a/data/config.yaml +++ b/data/config.yaml @@ -10,7 +10,7 @@ enableFooter: true enableContextualBacklinks: true enableRecentNotes: false enableGitHubEdit: false -GHlink: https://github.com/jackyzha0/quartz/tree/hugo/content +GitHubLink: https://github.com/jackyzha0/quartz/tree/hugo/content description: Host your second brain and digital garden for free. Quartz features extremely fast full-text search, Wikilink support, backlinks, local graph, tags, and link previews. diff --git a/layouts/partials/github.html b/layouts/partials/github.html index 87a4429d..a7b3d13e 100644 --- a/layouts/partials/github.html +++ b/layouts/partials/github.html @@ -1,3 +1,3 @@ -{{if $.Site.Data.config.enableGitHubEdit} -Edit Source +{{if $.Site.Data.config.enableGitHubEdit}} +Edit Source {{end}}