diff --git a/content/notes/config.md b/content/notes/config.md
index 056ae36a3..e29afda34 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 ce9ff0ab6..bae38dbaf 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 87a4429dd..a7b3d13ec 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}}