From 74993d19b72aee78e89b0b13b8f1d4a72fe5fe29 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Tue, 05 Jul 2022 22:42:57 +0000
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 056ae36..e29afda 100644
--- a/content/notes/config.md
+++ b/content/notes/config.md
@@ -49,6 +49,11 @@
# 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 ce9ff0a..bae38db 100644
--- a/data/config.yaml
+++ b/data/config.yaml
@@ -10,7 +10,7 @@
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 87a4429..a7b3d13 100644
--- a/layouts/partials/github.html
+++ b/layouts/partials/github.html
@@ -1,3 +1,3 @@
-{{if $.Site.Data.config.enableGitHubEdit}
-<a href="{{$.Site.Data.config.GHlink}}/{{ .Path}}" rel="noopener">Edit Source</a>
+{{if $.Site.Data.config.enableGitHubEdit}}
+<a href="{{$.Site.Data.config.GitHubLink}}/{{.Path}}" rel="noopener">Edit Source</a>
{{end}}
--
Gitblit v1.10.0