Skip to content

Commit 9186da5

Browse files
authored
initial work to display 2022 sponsors (#47)
* initial work to display 2022 sponsors * add University of Pittsburgh logo * toggle prospectus button display with single variable
1 parent e51581d commit 9186da5

File tree

8 files changed

+37
-22
lines changed

8 files changed

+37
-22
lines changed

_data/conf.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,9 @@ peri:
160160
# Sponsors
161161
###########
162162
# If false, hides sponsors link in navigation and footer
163-
show-sponsors: false
164-
# If true, any "Sponsors" links will go to /prospectus instead of /sponsors
165-
call-for-sponsors: true
166-
# Individual Page Buttons
167-
homepage-sponsor-button: true
168-
sponsorpage-sponsor-button: false
163+
show-sponsors: true
164+
# Toggles whether prospectus button displays on homepage and sponsor pages
165+
sponsor-buttons: true
169166
# URL to document
170167
# prospectus-document: ''
171168
sponsor-btn-link: 'https://www.concentra-cms.com/c4l22sponsorreg.html'

_data/sponsors.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Example
2+
# - name: ebsco
3+
# img: assets/img/sponsors/ebsco.svg
4+
# link: http://www.google.com
5+
# level: platinum
6+
# diversity: true
7+
# transcription: false
8+
9+
# if img is omitted, the name will be displayed instead.
10+
11+
# The annotation key can be used to specify a qualifier next
12+
# to the sponsor's name/logo (e.g., "Closed Captioning")
13+
14+
# diversity key indicates sponsors that should show up
15+
# on the diversity scholarships section of the site
16+
17+
# Available Levels
18+
# - adamantium
19+
# - platinum
20+
# - diamond
21+
# - gold
22+
# - silver
23+
# - bronze
24+
# - contributor
25+
# - supporter
26+
27+
- name: University of Pittsburgh-Library System
28+
img: /assets/img/sponsors/PittShield_Rule_ULS_3color_lightback.png
29+
link: https://www.library.pitt.edu/
30+
level: contributor

_includes/footer.html

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

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

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

_includes/homepage/jumbotron.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h1 class="text-right">
4343
{% endif %}
4444
{% endif %}
4545

46-
{% if site.data.conf.homepage-sponsor-button %}
46+
{% if site.data.conf.sponsor-buttons %}
4747
<a class="btn btn-lg jumbotron-btn" href="{{ site.baseurl }}{% link prospectus/index.html %}">Sponsor Code4Lib!</a>
4848
{% endif %}
4949

_includes/nav.html

+1-7
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,7 @@
4242
{% endcomment %}
4343

4444
{% if site.data.conf.show-sponsors%}
45-
{% if site.data.conf.call-for-sponsors %}
46-
<li class="nav-item"><a href="{{ site.baseurl }}{% link prospectus/index.html %}" class="nav-link">Sponsors</a></li>
47-
{% else %}
48-
{% if site.data.conf.show-sponsors %}
49-
<li class="nav-item"><a href="{{ site.baseurl }}{% link sponsors/index.html %}" class="nav-link">Sponsors</a></li>
50-
{% endif %}
51-
{% endif %}
45+
<li class="nav-item"><a href="{{ site.baseurl }}{% link sponsors/index.html %}" class="nav-link">Sponsors</a></li>
5246
{% endif %}
5347

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

assets/img/sponsors/.gitkeep

Whitespace-only changes.
Loading

sponsors/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div class="col-12">
1919
<h1>We ❤ our sponsors.</h1>
2020

21-
{% if site.data.conf.sponsorpage-sponsor-button %}
21+
{% if site.data.conf.sponsor-buttons %}
2222
<p>Interested in sponsoring Code4Lib {{site.data.conf.year}}?</p>
2323
<p>
2424
<a class="btn ct-btn-light btn-lg" href="{{ site.baseurl }}{% link prospectus/index.html %}">View our Prospectus</a>

0 commit comments

Comments
 (0)