Updated theme

This commit is contained in:
2025-11-01 15:24:35 +01:00
parent 53cedfb96b
commit 5daa1e5f3a
4 changed files with 44 additions and 10 deletions

View File

@@ -1 +1,4 @@
<p>Copyright {{ now.Year }}. All rights reserved.</p>
<div id="footer">
<p>Copyright &copy; {{ now.Year }} by Anne (<a href="mailto:anne@minded.net">anne@minded.net</a>).</p>
<p>Feel free to reuse or share under the <a href="https://creativecommons.org/licenses/by-nc-sa/4.0">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 License</a>.</p>
</div>

View File

@@ -12,8 +12,7 @@ For a given taxonomy, renders a list of terms assigned to the page.
{{- with $page.GetTerms $taxonomy }}
{{- $label := (index . 0).Parent.LinkTitle }}
<div>
<div>{{ $label }}:</div>
<div id="tags">
<ul>
{{- range . }}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>

View File

@@ -1,10 +1,12 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
{{ $dateMachine := .Date | time.Format "2006-01-02" }}
{{ $dateHuman := .Date | time.Format "2006-01-02" }}
<div id="byline">
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
</div>
{{ .Content }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
{{ end }}