From 63d414dd7b258d4f4c2db4b1d0572f264fb94eb9 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Tue, 8 Feb 2022 21:31:09 +0000 Subject: [PATCH] refactor: site.Params.cms -> site.Params.extensions.cms BREAKING CHANGE See #2601 --- wowchemy-cms/functions/parse.html | 6 +++--- wowchemy/layouts/partials/site_head.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 }}