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

13 lines
311 B
Plaintext
Raw Normal View History

2022-12-03 15:27:03 +00:00
{{- $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 }}