hugo-theme-relearn/layouts/partials/output-suffix.hugo
2022-07-15 14:07:48 +02:00

8 lines
No EOL
195 B
Text

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