Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions site/config/_default/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion site/themes/s2b_hugo_theme/layouts/calevents/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<div>
<!-- when PP is coming soon or happening now, display smaller banner that links to PP cal page -->
{{ if eq (.Param "festival.active") true }}
{{ if .Site.Params.festival.active }}
{{ partial "cal/pp-promo-banner.html" . }}
{{ end }}

Expand Down
2 changes: 1 addition & 1 deletion site/themes/s2b_hugo_theme/layouts/calgrid/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</div>

<!-- only display when PP is coming soon or happening now -->
{{ if eq (.Param "festival.active") true }}
{{ if .Site.Params.festival.active }}
{{ partial "cal/pp-promo-banner.html" . }}
{{ end }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{{ if eq (now.Year) (.Param "year") }}
<p>{{ .Param "festival.name" }} is <strong>three whole months</strong> of fun on two wheels.

{{ if eq (.Param "festival.active") true }}<a href="/addevent/"><strong>Add your events for June, July, and August {{ .Param "year" }} now!</strong></a> Seeking inspiration? {{ end }}
{{ if .Site.Params.festival.active }}<a href="/addevent/"><strong>Add your events for June, July, and August {{ .Param "year" }} now!</strong></a> Seeking inspiration? {{ end }}

View the <a href="/archive/pedal-palooza-archives/">archives</a> of past festivals. If you need help creating or editing an event, check out the <a href="/pages/calendar-faq/">calendar FAQ</a> or <a href="mailto:bikecal@shift2bikes.org">contact the calendar crew</a>.</p>

Expand All @@ -33,7 +33,7 @@
</p>
</div>

{{ partial "cal/pp-merch.html" . }}
{{ if .Site.Params.festival.merchSaleActive }}{{ partial "cal/pp-merch.html" . }}{{ end }}

{{ end }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
</div>
</div>

{{ partial "cal/pp-merch.html" . }}
{{ if .Site.Params.festival.merchSaleActive }}{{ partial "cal/pp-merch.html" . }}{{ end }}
</div>