blob: 601c85d3641597757478ff2ed5a6ab82098a1bb7 (
plain)
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
|
{{ define "main" }}
{{ $lastYear := 0 }}
{{ $lastMonth := 0 }}
<article>
<h2>{{ .Title }}</h2>
<hr>
<p>
User Friendly was a regular comic strip by J. D. Frazer (aka Illiad).
It tells a story of a group of techies working in an ISP.
Over 5500 pages of Quake, Linux, creatures born from old server dust, and making fun of Microsoft.
Weeks of fun!
</p>
<p>
Of course, I take no claim to have any copyright to User Friendly.
</p>
{{ range where .Site.RegularPages "Section" .Section }}
<!-- year handling -->
{{ if ne $lastYear (.PublishDate.Format "2006")}}
<hr>
<h3> {{ .PublishDate.Format "2006"}}</h3>
<hr><p>
{{ end }}
{{ $lastYear = (.PublishDate.Format "2006")}}
<!-- Month handling -->
{{ if ne $lastMonth (.PublishDate.Format "January")}}
<h4>{{ .PublishDate.Format "January" }}</h4>
</p><P>
{{ end }}
{{ $lastMonth = (.PublishDate.Format "January")}}
<!-- Day handling -->
<a class="list-button-link visit-marked" href="{{ .Permalink }}">{{(.PublishDate.Format "02") }}</a>
<!-- Month handling -->
{{ end }}
</article>
{{ end }}
|