Progress on archive page
This commit is contained in:
5
content/archive/_index.md
Normal file
5
content/archive/_index.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
title: "Archive"
|
||||||
|
date: 2023-10-17T10:50:41-04:00
|
||||||
|
draft: false
|
||||||
|
---
|
||||||
@@ -223,3 +223,18 @@ pre {
|
|||||||
audio::-webkit-media-controls-panel {
|
audio::-webkit-media-controls-panel {
|
||||||
background-color: rgba(0, 0, 0, 0.05);
|
background-color: rgba(0, 0, 0, 0.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
body {
|
||||||
|
padding: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:not(:has(img), [href^="#"])::after {
|
||||||
|
content: " (" attr(href) ")";
|
||||||
|
font-size: 0.8em;
|
||||||
|
}
|
||||||
|
}
|
||||||
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