blob: a360c93517e2bf308b0f2c27e64f841f3b92e25f (
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
|
{{ define "main" }}
<div>
<h1>{{ .Title }}</h1>
<div id="meta">
{{- $pub := .Date.Format "Jan 2, 2006" -}}
{{- $mod := "" -}}
{{- if (not .GitInfo) }}
{{- $mod = .Lastmod.Format "Jan 2, 2006" -}}
{{ else }}
{{- $mod = .Page.GitInfo.CommitDate.Format "Jan 2, 2006" -}}
{{ end -}}
{{ if eq $pub $mod }}
<span id="meta_date">posted on {{ $pub }}</span>
{{ else }}
<span id="meta_date">posted on {{ $pub }} - last modified {{ $mod }}</span>
{{ end }}
</div>
<article>
{{ .Content }}
</article>
<a href="/">↑ back home</a>
</div>
{{ end }}
|