Support multiple archives
This commit is contained in:
23
themes/v2/layouts/archive/single.html
Normal file
23
themes/v2/layouts/archive/single.html
Normal 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 }}
|
||||
Reference in New Issue
Block a user