Jacky Zhao
2022-07-05 74993d19b72aee78e89b0b13b8f1d4a72fe5fe29
docs + fix: broken partial and description of enableGitHubEdit
3 files modified
11 ■■■■ changed files
content/notes/config.md 5 ●●●●● patch | view | raw | blame | history
data/config.yaml 2 ●●● patch | view | raw | blame | history
layouts/partials/github.html 4 ●●●● patch | view | raw | blame | history
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,
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.
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}}