mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.git
synced 2024-09-19 09:57:52 +00:00
13 lines
316 B
HTML
13 lines
316 B
HTML
{{/* Return the current page outputformat */}}
|
|
{{ $alts := newScratch }}
|
|
{{ $format := "unknown" }}
|
|
{{ range .AlternativeOutputFormats }}
|
|
{{ $alts.Set .Name true }}
|
|
{{ end }}
|
|
{{ range .OutputFormats }}
|
|
{{ if not ($alts.Get .Name) }}
|
|
{{ $format = .Name }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ return $format }}
|