Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/themefisher/vex-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r--layouts/partials/footer.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index d4593df..4ce9dda 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -20,7 +20,13 @@
<!-- Snipcart public key -->
-{{with site.Params.snipcart_api}}<div hidden id="snipcart" data-api-key="{{.}}"></div>{{end}}
+{{ with site.Params.snipcart }}
+{{ if .enable }}
+{{ with .snipcart_api }}
+<div hidden id="snipcart" data-api-key="{{.}}"></div>
+{{ end }}
+{{ end }}
+{{ end }}
<!-- JS Plugins -->
{{ range site.Params.plugins.js}}