Toevoegen optie om tussen vertaalde pagina's te wisselen

This commit is contained in:
Michael Boelen 2023-11-16 14:52:04 +01:00
parent 507c4a0a5f
commit e79352aa0e

View file

@ -1,3 +1,19 @@
{{ define "main" }}
<div>{{ .Content }}</div>
{{ if .IsTranslated }}
<aside>
<h2 lang="en">Page translation</h2>
<div lang="en">This page is also available in the following translations:</div>
<nav>
{{ range .Translations }}
{{ if eq .Language.Lang "en" }}🇬🇧
{{ else if eq .Language.Lang "nl" }}🇳🇱
{{ end }}
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
{{ end}}
</nav>
</aside>
{{ end }}
{{ end }}