diff --git a/wowchemy-cms/functions/parse.html b/wowchemy-cms/functions/parse.html index 53769c6a..d044bd65 100644 --- a/wowchemy-cms/functions/parse.html +++ b/wowchemy-cms/functions/parse.html @@ -3,15 +3,15 @@ {{ $return = . }} {{ end }} -{{ $backend_opts := dict "branch" (site.Params.cms.branch | default "main") }} +{{ $backend_opts := dict "branch" (site.Params.extensions.cms.branch | default "main") }} -{{ with site.Params.cms.publish_mode }} +{{ with site.Params.extensions.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) }} +{{ if site.Params.extensions.cms.local_backend | or (not hugo.IsProduction) }} {{ $local_backend = true }} {{ end }} {{ $return = merge $return (dict "local_backend" $local_backend) }} diff --git a/wowchemy/layouts/partials/site_head.html b/wowchemy/layouts/partials/site_head.html index a6205c9e..3a8b1283 100644 --- a/wowchemy/layouts/partials/site_head.html +++ b/wowchemy/layouts/partials/site_head.html @@ -222,7 +222,7 @@ {{ partial "marketing/baidu_tongji" . }} {{/* Netlify Identity integration. */}} - {{ $use_cms := templates.Exists "wowchemycms/single.wowchemycms_config.yml" | default (site.Params.cms.netlify_cms | default false) }} + {{ $use_cms := templates.Exists "wowchemycms/single.wowchemycms_config.yml" | default (site.Params.extensions.cms.netlify_cms | default false) }} {{ if .IsHome | and $use_cms }} {{ end }}