blob: 1ae1aa485f408c5b1b7a4a14dfdc3a0b36bdfd5a (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{{ 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 style=float:right;>[
{{- range $index, $cat := . -}}
{{- if $index }} · {{ end -}}<a href=/categories/{{ $cat | urlize }} />{{ $cat }}</a>
{{- end -}}
]
</span>
{{ end }}
{{ with .Params.tags }}
<span class=tags>
{{- range $index, $tag := . -}}
{{- if $index }}, {{ end -}}<a href=/tags/{{ $tag | urlize }} />#{{ $tag }}</a>
{{- end -}}
</span>
{{ end }}
</div>
{{ end }}
</header>
{{ if in .TableOfContents "li" }}
<aside class="toc">
<h2>目錄</h2>
{{ .TableOfContents }}
</aside>
{{ end }}
{{ .Content }}
</article>
<hr>
<footer>
<p>本站文章采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="license noopener" target="_blank">CC BY-NC-SA 4.0</a> 协议共享。</p>
<p>
参与讨论:<a href="mailto:im@verdant.ee?subject=回复:《{{ .Title }}》">私信作者</a>
| <a href="mailto:~verdant/public-inbox@lists.sr.ht?subject=回复《{{ .Title }}》">公开邮件列表</a>
| <a href="https://lists.sr.ht/~verdant/public-inbox">浏览往期讨论</a>
</p>
{{ if .Params.org }}
{{ $orgPath := replace .File.LogicalName ".md" ".org" }}
{{ if in .Params.categories "Tracks" }}
<p><a href="https://git.verdant.ee/personal/blog.git/tree/org/tracks/{{ $orgPath }}">原始 org 文件</a></p>
{{ else }}
<p><a href="https://git.verdant.ee/personal/blog.git/tree/org/{{ $orgPath }}">原始 org 文件</a></p>
{{ end }}
{{ end }}
</footer>
{{ end }}
|