writing: new partial to filter essays by year

This commit is contained in:
desmukh
2022-12-27 12:01:50 +05:00
parent 4f78613498
commit 5207ecca45
2 changed files with 18 additions and 5 deletions

View File

@ -0,0 +1,6 @@
<h2>{{ .year }}</h2>
{{ range where .essays "year" .year }}
<div class="writing-item">
<p>{{ .year }}. <a href={{ .url }}><strong>{{ .title }}</strong></a>, <em>{{ .publication }}</em>, {{ .date }}.</p>
</div>
{{ end }}