Support multiple archives

This commit is contained in:
David Eisinger
2025-01-09 21:23:25 -05:00
parent c29f501699
commit 9cf14ffebc
2 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
{{ define "main" }}
<section class="page-break">
{{ time.Format "January 2006" .Params.start_date }}
{{ time.Format "January 2006" .Params.end_date}}
</section>
{{ range (sort (.Site.RegularPages.RelatedTo (keyVals "tags" "dispatch")) "Date" "asc") }}
{{ $page := . }}
<section class="page-break">
<h2>
{{ .Title }}
</h2>
<h3>
Posted {{ .Date | time.Format "2006-01-02" }}
</h3>
{{ $audioLink := printf "<a href=\"%s$1\">$3</a>" (substr .Site.BaseURL 0 -1) }}
{{ replaceRE `<audio controls src="((.*)/(.*).mp3)"></audio>` $audioLink .Content | safeHTML }}
</section>
{{ end }}
{{ end }}