Browse Source

fix(netlify): inconsistent defaults

Netlify Identity was disabled by default in 5d827c258a26b8f44e283b600aa087bbd29b76c9

So update default in corresponding snippet that checks for Netlify Identity
George Cushen 4 years ago
parent
commit
41f68f4f9b
2 changed files with 3 additions and 3 deletions
  1. 2 1
      wowchemy/layouts/partials/site_js.html
  2. 1 2
      wowchemy/test/config.yaml

+ 2 - 1
wowchemy/layouts/partials/site_js.html

@@ -124,7 +124,8 @@
     {{ end }}
 
     {{/* Netlify Identity integration. */}}
-    {{ if .IsHome | and (site.Params.cms.netlify_cms | default true) }}
+    {{/* Complements loading of Netlify JS in `site_head`. */}}
+    {{ if .IsHome | and (site.Params.cms.netlify_cms | default false) }}
     <script>
       if (window.netlifyIdentity) {
         window.netlifyIdentity.on("init", user => {

+ 1 - 2
wowchemy/test/config.yaml

@@ -1,4 +1,5 @@
 title: Wowchemy Test
+baseurl:
 module:
   imports:
     - path: github.com/wowchemy/wowchemy-hugo-modules/wowchemy
@@ -8,5 +9,3 @@ params:
   require_isotope: false
   main_menu:
     enable: false
-  cms:
-    netlify_cms: false