mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 21:34:06 -06:00
Add edit button
This commit is contained in:
parent
aaf31f419e
commit
c90450c8ff
@ -9,6 +9,8 @@ enableSPA: true
|
|||||||
enableFooter: true
|
enableFooter: true
|
||||||
enableContextualBacklinks: true
|
enableContextualBacklinks: true
|
||||||
enableRecentNotes: false
|
enableRecentNotes: false
|
||||||
|
onGitHub: false
|
||||||
|
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,
|
||||||
Wikilink support, backlinks, local graph, tags, and link previews.
|
Wikilink support, backlinks, local graph, tags, and link previews.
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<div class="singlePage">
|
<div class="singlePage">
|
||||||
<!-- Begin actual content -->
|
<!-- Begin actual content -->
|
||||||
<header>
|
<header>
|
||||||
<h1 id="page-title"><a href="{{ .Site.BaseURL }}">{{ .Site.Data.config.page_title }}</a></h1>
|
<h1 id="page-title"><a href="{{ .Site.BaseURL }}+Home/">{{ .Site.Data.config.page_title }}</a></h1>
|
||||||
<svg tabindex="0" id="search-icon" aria-labelledby="title desc" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.9 19.7"><title id="title">Search Icon</title><desc id="desc">Icon to open search</desc><g class="search-path" fill="none"><path stroke-linecap="square" d="M18.5 18.3l-5.4-5.4"/><circle cx="8" cy="8" r="7"/></g></svg>
|
<svg tabindex="0" id="search-icon" aria-labelledby="title desc" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.9 19.7"><title id="title">Search Icon</title><desc id="desc">Icon to open search</desc><g class="search-path" fill="none"><path stroke-linecap="square" d="M18.5 18.3l-5.4-5.4"/><circle cx="8" cy="8" r="7"/></g></svg>
|
||||||
<div class="spacer"></div>
|
<div class="spacer"></div>
|
||||||
{{partial "darkmode.html" .}}
|
{{partial "darkmode.html" .}}
|
||||||
@ -15,7 +15,8 @@
|
|||||||
<article>
|
<article>
|
||||||
{{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" . }}
|
||||||
</p>
|
</p>
|
||||||
<ul class="tags">
|
<ul class="tags">
|
||||||
{{ range (.GetTerms "tags") }}
|
{{ range (.GetTerms "tags") }}
|
||||||
|
|||||||
3
layouts/partials/github.html
Normal file
3
layouts/partials/github.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{{if $.Site.Data.config.onGitHub}}
|
||||||
|
<a href="{{$.Site.Data.config.GHlink}}/{{ .Path}}" rel="noopener">Edit</a>
|
||||||
|
{{end}}
|
||||||
Loading…
Reference in New Issue
Block a user