Files
HugoBlox-kit/wowchemy-cms/functions/parse.html
T
George Cushen 644fd14ba8 feat: support Hugo 0.84.1 and full Go modules
Remove webmanifest output spec as Hugo now has it built-in
2021-06-25 00:00:37 +01:00

23 lines
631 B
HTML

{{ $return := "" }}
{{ with site.Data.wowchemy_cms_tpl }}
{{ $return = . }}
{{ end }}
{{ $backend_opts := dict "branch" (site.Params.cms.branch | default "main") }}
{{ with site.Params.cms.publish_mode }}
{{ $publish_mode := dict "publish_mode" . }}
{{ $return = merge $return $publish_mode }}
{{ end }}
{{ $local_backend := false }}
{{ if site.Params.cms.local_backend | or (not hugo.IsProduction) }}
{{ $local_backend = true }}
{{ end }}
{{ $return = merge $return (dict "local_backend" $local_backend) }}
{{ $backend := dict "backend" $backend_opts }}
{{ $return := merge $return $backend }}
{{- return $return -}}