Skip to content

Commit dbaf950

Browse files
escowlesphette23
authored andcommitted
Show workshop-only registration info, but hide buttons with site.data.registration.workshop-only.show-button property
1 parent fc38e45 commit dbaf950

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

_data/registration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ conference:
2323

2424
workshop-only:
2525
# "show" only toggles the display of info in the registration bullets on the general-info/attend page
26-
show: false
26+
show: true
2727
# "show-button" only affects button on /general-info/attend (useful in main conf is sold out)
2828
show-button: false
2929
undecided: false
@@ -33,7 +33,7 @@ workshop-only:
3333
half-day-cost: '$75'
3434
full-day-cost: '$150'
3535
start-date: 2026-01-14
36-
end-date:
36+
end-date: 2026-02-09
3737

3838
t-shirt-only:
3939
show: true

_includes/homepage/jumbotron.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ <h1 class="text-right">
4444
{% else %}
4545
<a class="btn btn-lg jumbotron-btn" href="{{ site.data.registration.conference.url }}">Register Now!</a>
4646
{% endif %}
47-
{% elsif site.data.registration.workshop-only.show %}
47+
{% elsif site.data.registration.workshop-only.show and site.data.registration.workshop-only.show-button %}
4848
<a class="btn btn-lg jumbotron-btn" href="{{ site.data.registration.conference.url }}">Workshop Registration</a>
4949
{% endif %}
5050
{% endif %}

general-info/attend.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h2>Code4Lib {{ site.data.conf.year }} is Sold Out!</h2>
1818
{% else %}
1919
<a href="{{ site.data.registration.conference.url }}" class="btn ct-btn-light btn-lg">Register Now!</a>
2020
{% endif %}
21-
{% elsif site.data.registration.workshop-only.show %}
21+
{% elsif site.data.registration.workshop-only.show and site.data.registration.workshop-only.show-button %}
2222
<a href="{{ site.data.registration.conference.url }}" class="btn ct-btn-light btn-lg">Workshop Registration</a>
2323
{% else %}
2424
<p>Registration will open

0 commit comments

Comments
 (0)