mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
13 lines
No EOL
311 B
Text
13 lines
No EOL
311 B
Text
{{- $page := . }}
|
|
{{- $format := "" }}
|
|
{{- if reflect.IsMap $page }}
|
|
{{- $format = $page.format }}
|
|
{{- $page = $page.page }}
|
|
{{- else }}
|
|
{{- $format = partial "get-format.hugo" $page }}
|
|
{{- end }}
|
|
{{- $ret := "default" }}
|
|
{{- if $format }}
|
|
{{ $ret = $format.Name | lower }}
|
|
{{- end }}
|
|
{{- return $ret }} |