takunomi-blog/templates/past.tmpl

29 lines
714 B
Cheetah

{{define "past"}}
<article class="post">
<ul id=yearline style="width: max-content; list-style: none;">
{{with .Years}}
{{range .}}
<li class="yearline">
<!-- I mean just what the fuck is going on in that line below -->
<!-- Like, I know, but it's still ridiculous -->
{{(index . 0).Year}}
</li>
{{range .}}
<li>
<div style="display: flex; justify-content: space-between; ">
<div style="padding-right: 20px">
<a class="no-link" style="text-decoration: none;" href="/post/{{.URLTitle}}">{{.Title}}</a>
</div>
<div>
{{.NormalDate}}
</div>
</div>
</li>
{{end}}
<li class="yearend"/>
{{end}}
{{end}}
</ul>
</article>
{{end}}