mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
8 lines
195 B
Text
8 lines
195 B
Text
|
{{- $format := partial "get-format.hugo" . }}
|
||
|
{{- $ret := "html" }}
|
||
|
{{- if $format }}
|
||
|
{{- range first 1 $format.MediaType.Suffixes }}
|
||
|
{{- $ret = . }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
{{- return $ret }}
|