29 lines
859 B
HTML
29 lines
859 B
HTML
|
<p>
|
||
|
{{ $siteLanguages := .Site.Languages }}
|
||
|
{{ $pageLang := .Page.Lang }}
|
||
|
|
||
|
{{ $currentPage := . }}
|
||
|
{{ $pageName := "" }}
|
||
|
{{ range .Site.Menus.main }}
|
||
|
{{ if eq ($currentPage.Permalink) (.URL | absLangURL) }}
|
||
|
{{ $pageName = .Name }}
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
|
||
|
{{ range .Page.AllTranslations }}
|
||
|
{{ $translation := .}}
|
||
|
{{ range $siteLanguages }}
|
||
|
{{ if eq $translation.Lang .Lang }}
|
||
|
{{ $selected := false }}
|
||
|
{{ if eq $pageLang .Lang }}
|
||
|
<br/><span class="active">$ echo $LANG<br/><b>{{ .LanguageName }}</b></span><br/>
|
||
|
|
||
|
{{ else }}
|
||
|
<br/><a href="{{ $translation.Permalink }}">export LANG={{ .LanguageName }}; ./{{ $pageName }}</a><br/>
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
</p>
|
||
|
<br /><br />
|