diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-02-24 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-02-24 00:00:00 +0000 |
commit | dc89efa0d1ba80e8a7c61ddd2d0d4243cc82e52fb2c9104311b4ba5e2af81ff6 (patch) | |
tree | 377e286c42216fe50949c2e53a3c5aecfebf3d60be70a4d800f272370157191a /layouts/_default/term.html | |
parent | 4200dccb4372c7095e151803364c3f34eaa466327a2fc015a7a89065e4742b22 (diff) | |
download | hugo-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.html | 13 |
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 }} <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 }} <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 }} Atom Feed</a></p> + <h2>Journal Entries</h2> + {{- range .Data.Pages.ByPublishDate.Reverse }} + {{ partial "metadata.html" . -}} + {{- end -}} </main> {{- end }} |