Add a <ul> of available translation for the page to the content header

Attempt to style it.
This commit is contained in:
Eryn Wells 2024-03-11 08:30:15 -07:00
parent e18453dac0
commit 667a105b2e
2 changed files with 20 additions and 6 deletions

View file

@ -5,6 +5,14 @@
<time>{{ .Date | time.Format "January 2, 2006" }}</time>
{{ end }}
{{ if gt (len .AllTranslations) 1 }}
<ul class=translations>
{{ range .AllTranslations }}
<li><a href="{{ .RelPermalink }}">{{ .Language.LanguageCode }}</a></li>
{{ end }}
</ul>
{{ end }}
{{- if .Params.series -}}
{{- $series := .GetTerms "series" -}}