applied suggestions

This commit is contained in:
rphla 2022-07-05 08:30:09 +08:00
parent c6d821e92b
commit e4dc6e9c78
3 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ enableSPA: true
enableFooter: true
enableContextualBacklinks: true
enableRecentNotes: false
onGitHub: false
enableGitHubEdit: false
GHlink: 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,

View File

@ -16,7 +16,7 @@
{{if .Title}}<h1>{{ .Title }}</h1>{{end}}
<p class="meta">
Last updated {{if ne .Date .Lastmod}}{{ .Lastmod.Format "January 2, 2006" }}{{else}}Unknown{{end}}.
{{ partial "github.html" . }}
{{ partial "github.html" . }}
</p>
<ul class="tags">
{{ range (.GetTerms "tags") }}

View File

@ -1,3 +1,3 @@
{{if $.Site.Data.config.onGitHub}}
<a href="{{$.Site.Data.config.GHlink}}/{{ .Path}}" rel="noopener">Edit</a>
{{end}}
{{if $.Site.Data.config.enableGitHubEdit}
<a href="{{$.Site.Data.config.GHlink}}/{{ .Path}}" rel="noopener">Edit Source</a>
{{end}}