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 enableFooter: true
enableContextualBacklinks: true enableContextualBacklinks: true
enableRecentNotes: false enableRecentNotes: false
onGitHub: false enableGitHubEdit: false
GHlink: https://github.com/jackyzha0/quartz/tree/hugo/content GHlink: https://github.com/jackyzha0/quartz/tree/hugo/content
description: description:
Host your second brain and digital garden for free. Quartz features extremely fast full-text search, 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}} {{if .Title}}<h1>{{ .Title }}</h1>{{end}}
<p class="meta"> <p class="meta">
Last updated {{if ne .Date .Lastmod}}{{ .Lastmod.Format "January 2, 2006" }}{{else}}Unknown{{end}}. Last updated {{if ne .Date .Lastmod}}{{ .Lastmod.Format "January 2, 2006" }}{{else}}Unknown{{end}}.
{{ partial "github.html" . }} {{ partial "github.html" . }}
</p> </p>
<ul class="tags"> <ul class="tags">
{{ range (.GetTerms "tags") }} {{ range (.GetTerms "tags") }}

View File

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