culinary.kemonine.info/themes/hugo-theme-relearn/layouts/partials/output-suffix.hugo

8 lines
195 B
Plaintext
Raw Normal View History

2022-12-03 15:27:03 +00:00
{{- $format := partial "get-format.hugo" . }}
{{- $ret := "html" }}
{{- if $format }}
{{- range first 1 $format.MediaType.Suffixes }}
{{- $ret = . }}
{{- end }}
{{- end }}
{{- return $ret }}