diff options
Diffstat (limited to 'themes/24-unification/layouts/_default/comic_index.html')
-rw-r--r-- | themes/24-unification/layouts/_default/comic_index.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/themes/24-unification/layouts/_default/comic_index.html b/themes/24-unification/layouts/_default/comic_index.html new file mode 100644 index 0000000..601c85d --- /dev/null +++ b/themes/24-unification/layouts/_default/comic_index.html @@ -0,0 +1,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 }} |