Skip to content

Commit d53c4be

Browse files
authored
add a conf toggle so sponsors->prospectus in nav (#18)
* add a conf toggle so sponsors->prospectus in nav * set sponsors-links-to-prospectus to false
1 parent 06a54fb commit d53c4be

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

_data/conf.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ peri:
199199
show-sponsors: true
200200
# Toggles whether prospectus button displays on homepage and sponsor pages
201201
sponsor-buttons: false
202+
# if true, the nav/footer links go to /prospectus/ instead of /sponsors/
203+
# for use early on when we are looking for, but do not have many, sponsors
204+
sponsors-links-to-prospectus: false
202205
# URL to document
203206
prospectus-document: 'https://drive.google.com/file/d/1XY0RPNv_25SykOnvcTB3yipilUTWKb-E/view?usp=sharing'
204207
sponsor-btn-link: 'https://www.concentra-cms.com/c4l24sponsorreg.html'

_includes/footer.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@
1111
{% endif %}">Speakers</a></li>
1212

1313
{% if site.data.conf.show-sponsors %}
14-
<li class="list-inline-item tci"><a class="nav" href="{{ site.baseurl }}{% link sponsors/index.html %}">Sponsors</a></li>
14+
<li class="list-inline-item tci">
15+
{% if site.data.conf.sponsors-links-to-prospectus %}
16+
<a class="nav" href="{{ site.baseurl }}{% link prospectus/index.html %}">Sponsors</a>
17+
{% else %}
18+
<a class="nav" href="{{ site.baseurl }}{% link sponsors/index.html %}">Sponsors</a>
19+
{% endif %}
20+
</li>
1521
{% endif %}
1622

1723
<li class="list-inline-item tci"><a class="nav" href="{{ site.baseurl }}{% link general-info/attend.html %}">General Info</a></li>

_includes/nav.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@
3636
{% link speakers/index.html %}{% else %}{% link speakers/past-keynotes.html %}
3737
{% endif %}" class="nav-link">Speakers</a></li>
3838

39-
{% comment %}
40-
when looking for sponsors before conf, send users to prospectus
41-
close to / during conf, send to the list of sponsors page
42-
{% endcomment %}
43-
4439
{% if site.data.conf.show-sponsors%}
45-
<li class="nav-item"><a href="{{ site.baseurl }}{% link sponsors/index.html %}" class="nav-link">Sponsors</a></li>
40+
<li class="nav-item">
41+
{% if site.data.conf.sponsors-links-to-prospectus %}
42+
<a class="nav-link" href="{{ site.baseurl }}{% link prospectus/index.html %}">Sponsors</a>
43+
{% else %}
44+
<a class="nav-link" href="{{ site.baseurl }}{% link sponsors/index.html %}">Sponsors</a>
45+
{% endif %}
46+
</li>
4647
{% endif %}
4748

4849
<li class="nav-item"><a href="{{ site.baseurl }}{% link general-info/attend.html %}" class="nav-link">General Info</a></li>

0 commit comments

Comments
 (0)