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

github.com/themefisher/Hargo-hugo-ecommerce-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYauhen Makei <yauhen.makei@gmail.com>2022-07-31 16:02:15 +0300
committerGitHub <noreply@github.com>2022-07-31 16:02:15 +0300
commit6649736661a45117d67f9ff38bf998f645f751d6 (patch)
tree84c807ff7a97bd51e67eb41b3747ac8f2de9deaa
parent646a345351a1b62ee578b62db23823014cbf9abb (diff)
Maybe it should't be on every page
If it is disabled on homepage why it should appears on another pages?
-rw-r--r--layouts/partials/cta.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/cta.html b/layouts/partials/cta.html
index d1a466e..cb538bb 100644
--- a/layouts/partials/cta.html
+++ b/layouts/partials/cta.html
@@ -1,4 +1,5 @@
<!-- call to action -->
+{{ if site.Data.homepage.cta.enable }}
{{ with site.Data.homepage.cta }}
<section class="py-4 bg-gradient position-relative">
<img src="{{ .overlayImage | absURL }}" class="img-fluid overlay-image" alt="">
@@ -18,4 +19,5 @@
</div>
</section>
{{ end }}
-<!-- /call to action --> \ No newline at end of file
+{{ end }}
+<!-- /call to action -->