include the aside tag only if the page is translated

This commit is contained in:
Vrifox 2021-06-13 13:42:59 +02:00
parent 4d1437ea02
commit 1435341c0e
Signed by: vrifox
GPG key ID: D40098E5B60B2197

View file

@ -8,11 +8,11 @@
<a href="{{ .URL }}">{{ .Name }}</a>
{{- end }}
</nav>
<aside>
{{- if .IsTranslated }}
<aside>
{{- range .Translations }}
<a href="{{ .Permalink }}">{{ .Lang }}</a>
{{- end }}
{{- end }}
</aside>
{{- end }}
</header>