diff options
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | layouts/home.gmi | 9 | ||||
| -rw-r--r-- | layouts/home.html | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 551d2b3..2fe319c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ - Add example site with annotated configuration for website and capsule - Add section templates, which no output format previously had - Add Atom feeds for sections, in both output formats +- Add a feed link to the homepage, as the other listing pages have - Add Atom feed autodiscovery links to document head - Support more than one audio version per entry diff --git a/layouts/home.gmi b/layouts/home.gmi index 0a056f7..619a5f8 100644 --- a/layouts/home.gmi +++ b/layouts/home.gmi @@ -13,6 +13,15 @@ {{ end -}} +{{ with .OutputFormats.Get "Gemini_Atom" }} + + +## {{ i18n "feeds" }} + +=> {{ .RelPermalink }} {{ emojify ":link:" }} {{ i18n "atomFeed" -}} + +{{ end -}} + {{ with (where .Site.RegularPages "Section" "entry").ByPublishDate.Reverse }} diff --git a/layouts/home.html b/layouts/home.html index b3dcdd0..5a8368b 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -12,6 +12,10 @@ </ul> </nav> {{ end }} + {{ with .OutputFormats.Get "Atom" }} + <h2>{{ i18n "feeds" }}</h2> + <p>{{ emojify ":link:" }} <a class="link link--internal" href="{{ .RelPermalink }}" rel="noreferrer">{{ i18n "atomFeed" }}</a></p> + {{ end }} {{ with (where .Site.RegularPages "Section" "entry").ByPublishDate.Reverse }} <h2>{{ i18n "journalEntries" }}</h2> {{ range . }} |
