Store references as metadata

This commit is contained in:
David Eisinger
2023-04-04 20:15:46 -04:00
parent 49ca2bd736
commit 39b932a708
6 changed files with 74 additions and 42 deletions

View File

@@ -16,8 +16,7 @@
{{ .Date | time.Format "(2006-01-02)" }}
</p>
{{ $sup := "<sup.*?>.*?</sup>" }}
{{ replaceRE $sup "" .Summary | safeHTML }}
{{ .Summary }}
</li>
{{ end }}
</ul>

View File

@@ -16,4 +16,23 @@
</h3>
{{ .Content }}
{{ with .Params.References }}
<hr>
<div class="footnotes">
<h3>References</h3>
<ul>
{{ range . }}
<li>
"<a href="{{ .url }}">{{ .title }}</a>";
<a href="{{ .file }}">
backed up {{ .date | time.Format "2006-01-02 15:04:05 MST" }}
</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
{{ end }}