hugo-theme-relearn/layouts/partials/output-suffix.hugo

8 lines
195 B
Text
Raw Normal View History

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