github.com/e154/smart-home@v0.17.2-0.20240311175135-e530a6e5cd45/doc/themes/docsy/layouts/partials/outputformat.html (about)

     1  {{/* Return the current page outputformat */}}
     2  {{ $alts := newScratch }}
     3  {{ $format := "unknown" }}
     4  {{ range .AlternativeOutputFormats }}
     5      {{ $alts.Set .Name true }}
     6  {{ end }}
     7  {{ range .OutputFormats }}
     8      {{ if not ($alts.Get .Name) }}
     9          {{ $format = .Name }}
    10      {{ end }}
    11  {{ end }}
    12  {{ return $format }}