blob: 934f40f0022e97d2a3f694faae24bc33b91dd1cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{{ define "main" }}
<article class="h-entry prose leading-relaxed">
<h1 class="p-name">{{ .Title }}</h1>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time class="dt-published" datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
{{ $page := . }}
{{ with .Params.inReplyTo }}
<p style="font-style: italic">本页面是对 <a href="{{ . }}" class="u-in-reply-to" target="_blank">{{ $page.Params.inReplyToTitle }}</a> 的回复。</p>
{{ end }}
<div class="e-content">
{{ .Content }}
</div>
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
{{ partial "components/h-card" . }}
</article>
{{ end }}
|