aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/single.html
blob: 96b3bb0c3c1e8e804b6d27f7eb68204127a606d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{{ define "main" }}
<header>
	<a href= /><code>cd ~</code></a>
</header>
<hr>
<article>
	<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>
</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>
</footer>
{{ end }}