diff options
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | i18n/en.toml | 3 | ||||
| -rw-r--r-- | i18n/es.toml | 3 | ||||
| -rw-r--r-- | layouts/home.gmi | 10 | ||||
| -rw-r--r-- | layouts/home.html | 5 |
5 files changed, 22 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fe319c..c65cf21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ - 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 a tag list link to the homepage, so that tags are reachable in gemtext - Add Atom feed autodiscovery links to document head - Support more than one audio version per entry diff --git a/i18n/en.toml b/i18n/en.toml index 307a669..d3257dd 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -16,6 +16,9 @@ [tags] other = "Tags" +[tagList] + other = "Tag List" + [journalEntries] other = "Journal Entries" diff --git a/i18n/es.toml b/i18n/es.toml index 58dfdb9..80b17d2 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -17,6 +17,9 @@ [tags] other = "Etiquetas" +[tagList] + other = "Lista de etiquetas" + [journalEntries] other = "Entradas" diff --git a/layouts/home.gmi b/layouts/home.gmi index 619a5f8..a63c9f4 100644 --- a/layouts/home.gmi +++ b/layouts/home.gmi @@ -13,6 +13,16 @@ {{ end -}} +{{ $tagList := .Site.GetPage (lower (i18n "tags")) -}} +{{ if and $tagList $tagList.Pages }} + + +## {{ i18n "tags" }} + +=> {{ $tagList.RelPermalink | strings.TrimSuffix "index.gmi" }} {{ emojify ":link:" }} {{ i18n "tagList" -}} + +{{ end -}} + {{ with .OutputFormats.Get "Gemini_Atom" }} diff --git a/layouts/home.html b/layouts/home.html index 5a8368b..11e43bc 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -12,6 +12,11 @@ </ul> </nav> {{ end }} + {{ $tagList := .Site.GetPage (lower (i18n "tags")) }} + {{ if and $tagList $tagList.Pages }} + <h2>{{ i18n "tags" }}</h2> + <p>{{ emojify ":link:" }} <a class="link link--internal" href="{{ $tagList.RelPermalink }}" rel="noreferrer">{{ i18n "tagList" }}</a></p> + {{ 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> |
