forked from Bunteshaus/bunteshaus.de
26 lines
690 B
HTML
26 lines
690 B
HTML
{{ $l1 := slice }}
|
|
{{ $l2 := slice }}
|
|
{{ range $.Site.Home.Translations }}
|
|
{{ $l1 = $l1 | append .Language }}
|
|
{{ end }}
|
|
|
|
{{ $all_lang := $.Site.Home.Translations }}
|
|
{{ range site.RegularPages }}
|
|
{{ $missing := slice}}
|
|
{{ if .Translations }}
|
|
{{ range .Translations }}
|
|
{{ $l2 = $l2 | append .Language }}
|
|
{{ end }}
|
|
{{ $final := $l1 | complement $l2 }}
|
|
{{ range $final }}
|
|
{{ $missing = $missing | append . }}
|
|
{{ end }}
|
|
{{ else }}
|
|
{{ $missing = $missing | append "all translations" }}
|
|
{{ end }}
|
|
{{ if $missing }}
|
|
<a href="{{ .Permalink}}" style="margin-top: 1rem;">{{ .Name }}:</a>
|
|
<div>missing: {{ index $missing 0 }}</div>
|
|
{{ end }}
|
|
{{ end }}
|