diff options
Diffstat (limited to 'layouts/_default/single.html')
| -rw-r--r-- | layouts/_default/single.html | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2f71bdc..96b3bb0 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,32 +1,35 @@ {{ define "main" }} <header> - <a href=/>回到首页</a> + <a href= /><code>cd ~</code></a> </header> <hr> - <article> - <header> - <h1>{{ .Title }}</h1> - <div class=meta> - <time datetime={{ .Date.Format "2006-01-02T15:04:05Z07:00" }}>{{ .Date.Format "2006-01-02" }}</time> - {{ with .Params.categories }} - <span class=cats>[ - {{- range $index, $cat := . -}} - {{- if $index }} · {{ end -}}<a href=/categories/{{ $cat | urlize }}/>{{ $cat }}</a> - {{- end -}} - ]</span> - {{ end }} - </div> - </header> + <header> + <h1>{{ .Title }}</h1> + {{ if .Params.showMeta }} + <div class=meta> + <time datetime={{ .Date.Format "2006-01-02T15:04:05Z07:00" }}>{{ .Date.Format "2006-01-02" }}</time> + {{ with .Params.categories }} + <span class=cats>[ + {{- range $index, $cat := . -}} + {{- if $index }} · {{ end -}}<a href=/categories/{{ $cat | urlize }} />{{ $cat }}</a> + {{- end -}} + ]</span> + {{ end }} + </div> + {{ end }} + </header> - <div class=body> - {{ .Content }} - </div> + <div class=body> + {{ .Content }} + </div> </article> <hr> <footer> - <p>条目共享:遵循 <a href=https://creativecommons.org/licenses/by-nc-sa/4.0/ rel="license noopener">CC BY-NC-SA 4.0</a> 协议。</p> - <p>交流通道:向 <a href="mailto:im@verdant.ee?subject=回复《{{ .Title }}》">im@verdant.ee</a> 发送一封 <a href=https://useplaintext.email/>纯文本邮件</a>。</p> + <p>条目共享:遵循 <a href=https://creativecommons.org/licenses/by-nc-sa/4.0/ rel="license noopener">CC BY-NC-SA 4.0</a> 协议。 + </p> + <p>交流通道:向 <a href="mailto:im@verdant.ee?subject=回复《{{ .Title }}》">im@verdant.ee</a> 发送一封 <a + href=https://useplaintext.email />纯文本邮件</a>。</p> </footer> {{ end }} |
