diff --git a/site/config/_default/hugo.toml b/site/config/_default/hugo.toml index 2f6a3123..5966ebc2 100644 --- a/site/config/_default/hugo.toml +++ b/site/config/_default/hugo.toml @@ -109,6 +109,7 @@ disableKinds = ["taxonomy", "term"] [params.festival] name = "Bike Summer" active = true # set to true when festival is happening soon or now + merchSaleActive = false # set to true when merch sales are open donationsURL = "https://www.paypal.com/donate/?cmd=_s-xclick&hosted_button_id=NQAUFEUSM49ZJ" # Main page image carousel diff --git a/site/themes/s2b_hugo_theme/layouts/calevents/single.html b/site/themes/s2b_hugo_theme/layouts/calevents/single.html index a18c57ca..d9a86775 100644 --- a/site/themes/s2b_hugo_theme/layouts/calevents/single.html +++ b/site/themes/s2b_hugo_theme/layouts/calevents/single.html @@ -3,7 +3,7 @@
{{ .Param "festival.name" }} is three whole months of fun on two wheels. - {{ if eq (.Param "festival.active") true }}Add your events for June, July, and August {{ .Param "year" }} now! Seeking inspiration? {{ end }} + {{ if .Site.Params.festival.active }}Add your events for June, July, and August {{ .Param "year" }} now! Seeking inspiration? {{ end }} View the archives of past festivals. If you need help creating or editing an event, check out the calendar FAQ or contact the calendar crew.
@@ -33,7 +33,7 @@ - {{ partial "cal/pp-merch.html" . }} + {{ if .Site.Params.festival.merchSaleActive }}{{ partial "cal/pp-merch.html" . }}{{ end }} {{ end }} diff --git a/site/themes/s2b_hugo_theme/layouts/partials/cal/pp-promo-banner.html b/site/themes/s2b_hugo_theme/layouts/partials/cal/pp-promo-banner.html index 906ca8d9..ff973b46 100644 --- a/site/themes/s2b_hugo_theme/layouts/partials/cal/pp-promo-banner.html +++ b/site/themes/s2b_hugo_theme/layouts/partials/cal/pp-promo-banner.html @@ -7,5 +7,5 @@ - {{ partial "cal/pp-merch.html" . }} + {{ if .Site.Params.festival.merchSaleActive }}{{ partial "cal/pp-merch.html" . }}{{ end }}