Allow switching between big and small CTAs

This commit is contained in:
2023-11-06 16:50:03 +00:00
parent df5da86e94
commit 5a6b21371e
3 changed files with 6 additions and 1 deletions

View File

@@ -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
---

View File

@@ -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?

View File

@@ -41,8 +41,12 @@
</section>
{{ block "cta" . }}
{{ if .Params.show_big_cta }}
{{ partial "design/bigcta.html" . }}
{{ else }}
{{ partial "design/cta.html" . }}
{{ end }}
{{ end }}
{{ partial "footer.html" .}}
{{ partial "foot.html" .}}