culinary.kemonine.info/themes/hugo-theme-relearn/layouts/partials/output-suffix.hugo
2022-12-03 10:27:03 -05:00

8 lines
195 B
Plaintext

{{- $format := partial "get-format.hugo" . }}
{{- $ret := "html" }}
{{- if $format }}
{{- range first 1 $format.MediaType.Suffixes }}
{{- $ret = . }}
{{- end }}
{{- end }}
{{- return $ret }}