From 5a6b21371e35fd84687c0d1ee118d5f651b6cec7 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 6 Nov 2023 16:50:03 +0000 Subject: [PATCH] Allow switching between big and small CTAs --- archetypes/default.md | 2 +- content/about/index.md | 1 + themes/lhs/layouts/_default/baseof.html | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/archetypes/default.md b/archetypes/default.md index 0379ee2..bf63b27 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,7 +1,7 @@ --- title: "{{ replace .Name "-" " " | title }}" subtitle: "" -date: {{ .Date }} draft: true +show_big_cta: false # Show the big Call To Action at the bottom of the page --- diff --git a/content/about/index.md b/content/about/index.md index 736d545..378cdec 100644 --- a/content/about/index.md +++ b/content/about/index.md @@ -1,6 +1,7 @@ --- title: About Leigh Hackspace subtitle: An accessible, social workspace, where you can meet people, learn new skills, and build awesome things! +show_big_cta: true --- ### What is Leigh Hackspace? diff --git a/themes/lhs/layouts/_default/baseof.html b/themes/lhs/layouts/_default/baseof.html index 6a8e05b..7c7babb 100644 --- a/themes/lhs/layouts/_default/baseof.html +++ b/themes/lhs/layouts/_default/baseof.html @@ -41,8 +41,12 @@ {{ block "cta" . }} + {{ if .Params.show_big_cta }} + {{ partial "design/bigcta.html" . }} + {{ else }} {{ partial "design/cta.html" . }} {{ end }} + {{ end }} {{ partial "footer.html" .}} {{ partial "foot.html" .}}