From b6d7c4bb941b23438479e1b11e2da6ce484ba640 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Thu, 9 Nov 2023 13:53:33 +0000 Subject: [PATCH] Don't show the CTA on the Thank You page --- content/thank_you.md | 4 ++-- themes/lhs/layouts/_default/baseof.html | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/content/thank_you.md b/content/thank_you.md index e6ac7d7..63f3f6c 100644 --- a/content/thank_you.md +++ b/content/thank_you.md @@ -1,8 +1,8 @@ --- title: "Thank You, and Welcome!" subtitle: "You're now a member." -draft: true -show_big_cta: false # Show the big Call To Action at the bottom of the page +draft: false +show_cta: false --- **Thank you** for joining us! You now have access to Leigh Hackspace and its facilities. You're probably wondering what to do next? Hopefully we can guide you on your next steps. diff --git a/themes/lhs/layouts/_default/baseof.html b/themes/lhs/layouts/_default/baseof.html index 1583e45..9fb3084 100644 --- a/themes/lhs/layouts/_default/baseof.html +++ b/themes/lhs/layouts/_default/baseof.html @@ -55,10 +55,12 @@
{{ block "cta" . }} - {{ if .Params.show_big_cta }} - {{ partial "design/bigcta.html" . }} - {{ else }} - {{ partial "design/cta.html" . }} + {{ if (default true .Params.show_cta) }} + {{ if .Params.show_big_cta }} + {{ partial "design/bigcta.html" . }} + {{ else }} + {{ partial "design/cta.html" . }} + {{ end }} {{ end }} {{ end }}