aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-06-06 12:14:37 +0800
committerverdant <im@verdant.ee>2026-06-06 12:14:37 +0800
commit25ea0cacc111877d55a39c8c089db91cfee340aa (patch)
tree5c1024d219a21be0c68e075ee047ef0ab5e51246 /layouts/_default/single.html
parent537ef605e2fcca07c8d89994d043d12fc35b4dd7 (diff)
downloadblog-25ea0cacc111877d55a39c8c089db91cfee340aa.tar.gz
blog-25ea0cacc111877d55a39c8c089db91cfee340aa.zip
Use `cd ~` instead of `回到首页`
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html43
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 }}