Progress on archive page
This commit is contained in:
22
themes/v2/layouts/archive/list.html
Normal file
22
themes/v2/layouts/archive/list.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{{ define "main" }}
|
||||
<section>
|
||||
{{ .Content }}
|
||||
|
||||
{{ range (sort (.Site.RegularPages.RelatedTo (keyVals "tags" "dispatch")) "Date" "asc") }}
|
||||
{{ $page := . }}
|
||||
|
||||
<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 }}
|
||||
|
||||
<div style="page-break-after: always"></div>
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user