8 lines
195 B
Plaintext
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 }} |