mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-11 17:02:24 +00:00
Allow switching between big and small CTAs
This commit is contained in:
@@ -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
|
||||
---
|
||||
|
||||
|
||||
@@ -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?
|
||||
|
||||
|
||||
@@ -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" .}}
|
||||
|
||||
Reference in New Issue
Block a user