summaryrefslogtreecommitdiff
path: root/layouts/_default/term.html
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-02-24 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-02-24 00:00:00 +0000
commitdc89efa0d1ba80e8a7c61ddd2d0d4243cc82e52fb2c9104311b4ba5e2af81ff6 (patch)
tree377e286c42216fe50949c2e53a3c5aecfebf3d60be70a4d800f272370157191a /layouts/_default/term.html
parent4200dccb4372c7095e151803364c3f34eaa466327a2fc015a7a89065e4742b22 (diff)
downloadhugo-theme-journal-dc89efa0d1ba80e8a7c61ddd2d0d4243cc82e52fb2c9104311b4ba5e2af81ff6.tar.gz
hugo-theme-journal-dc89efa0d1ba80e8a7c61ddd2d0d4243cc82e52fb2c9104311b4ba5e2af81ff6.zip
Implement term Atom feeds
Diffstat (limited to 'layouts/_default/term.html')
-rw-r--r--layouts/_default/term.html13
1 files changed, 7 insertions, 6 deletions
diff --git a/layouts/_default/term.html b/layouts/_default/term.html
index 0f1defc..4b69ebe 100644
--- a/layouts/_default/term.html
+++ b/layouts/_default/term.html
@@ -3,11 +3,12 @@
<p>{{ emojify ":link:" | safeHTML }}&nbsp;<a class="link" href="/" rel="noreferrer">Return to homepage</a></p>
</nav>
<main>
- <h1>All entries for {{ .Type | singularize }} "{{ .Title }}"</h1>
- <ul class="list">
- {{- range .Data.Pages }}
- <li class="list__item">{{ emojify ":link:" | safeHTML }}&nbsp;<a class="link" href="{{ .RelPermalink }}" rel="noreferrer">{{ .Title }}</a></li>
- {{- end }}
- </ul>
+ <h1>{{ .Type | singularize | humanize }} "{{ .Title }}"</h1>
+ <h2>Feeds</h2>
+ <p><a class="link" href="{{ print .RelPermalink "atom.xml" }}" rel="noreferrer"> {{ emojify ":link:" | safeHTML }}&nbsp;Atom Feed</a></p>
+ <h2>Journal Entries</h2>
+ {{- range .Data.Pages.ByPublishDate.Reverse }}
+ {{ partial "metadata.html" . -}}
+ {{- end -}}
</main>
{{- end }}