aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/home.gmi10
-rw-r--r--layouts/home.html5
2 files changed, 15 insertions, 0 deletions
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:" }}&nbsp;<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:" }}&nbsp;<a class="link link--internal" href="{{ .RelPermalink }}" rel="noreferrer">{{ i18n "atomFeed" }}</a></p>