summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-08-17 00:49:38 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-08-17 00:49:38 +0200
commit46919955be4220a93eb686df3333c956dc6821fc (patch)
treecaf4b7ca0c5dca47f67674e4b6a5ad72f96931b7
parent31417992db799bc0d05cb58cce3f1fb74732fa07 (diff)
Update footer partials
-rw-r--r--layouts/partials/footer.html19
1 files changed, 17 insertions, 2 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 3d1282e..b0b9262 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -3,8 +3,23 @@
</article>
</main>
<footer>
- <a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a><br><br>
- <a href="/index.xml"><img src="/rss.svg" style="max-height:1.5em" alt="RSS Feed" title="Subscribe via RSS for updates."></a>
+ {{- if isset .Params "tags" -}}
+ {{- $tagsLen := len .Params.tags -}}
+ {{- if gt $tagsLen 0 -}}
+ <div style="clear:both" class=taglist>
+ {{- with .Site.Params.relatedtext }}{{ . }}<br>{{ end -}}
+ {{- range $k, $v := .Params.tags -}}
+ {{- $url := printf "tags/%s" (. | urlize | lower) -}}
+ <a id="tag_{{ . | lower }}" href="{{ $url | absURL }}">{{ . | title }}</a>
+ {{- if lt $k (sub $tagsLen 1) }} &middot; {{ end -}}
+ {{- end -}}
+ </div>
+ {{- end -}}
+ {{- end }}
+ <a href="{{ .Site.BaseURL }}">{{ .Site.BaseURL }}</a><br><br>
+ <a href="/index.xml"><img src="/rss.svg" style="max-height:1.5em" alt="RSS Feed"
+ title="Subscribe via RSS for updates."></a>
</footer>
</body>
+
</html>