Skip to content

Commit a6f6454

Browse files
committed
fix: remove 2025 text from general-info section
this also refactors a lot of the general-info HTML to remove redundant row, column, and fluid-container divs that weren't really doing anything other than adding padding, since the parent template already had wrapping elements with those classes finally, I've also added my secondary-nav script to the bottom of the secondary-nav template so that any secondary-nav items which link to sections that do not exist on the page are removed this allows us to leave all nav frontmatter uncommented and sections will be revealed as their content is added
1 parent 4e53b62 commit a6f6454

File tree

14 files changed

+364
-570
lines changed

14 files changed

+364
-570
lines changed

_data/conf.yml

Lines changed: 24 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -77,70 +77,38 @@ schedule-note: The main conference will be on Monday, March 3 through Wednesday,
7777
city-state: 'Pittsburgh, PA'
7878
city: 'Pittsburgh'
7979
state: 'PA'
80+
# TODO CMU land acknowledgement, couldn't find one, maybe link to this?
81+
# https://guides.library.cmu.edu/indigenous-studies
82+
land-acknowledgement:
8083

8184
venue:
8285
name: 'Carnegie Mellon University'
8386
# TODO values below
84-
street: Friend Center
85-
postal-code: 08540
86-
image: friend-center.jpg
87-
image_alt: 'An exterior view of the Friend Center, a glass and stone building. A path leads through the courtyard to the main entrance.'
88-
image_title: 'Friend Center'
89-
note: ""
87+
street:
88+
postal-code:
89+
image:
90+
image_alt:
91+
image_title:
92+
note:
9093
hotel:
9194
show: false
92-
name: The Graduate
93-
cost: $269/night (king) or $299/night (two doubles)
94-
cost-cutoff-date: 2025-02-11
95-
reserved-room-block: true
96-
link: https://www.hilton.com/en/hotels/pctgpgu-graduate-princeton/
97-
multiple-hotels: true
95+
name:
96+
cost:
97+
cost-cutoff-date:
98+
reserved-room-block: false
99+
link:
100+
multiple-hotels: false
98101
multiple-hotels-map:
99-
note: "Contact information for hotels in the Princeton area:"
102+
note:
100103
hotel-options:
101-
- name: The Graduate
102-
street: 10 Chambers Street
103-
city-state: Princeton, NJ
104-
postal-code: 08540
105-
phone: 609-380-1457
106-
website: https://www.hilton.com/en/hotels/pctgpgu-graduate-princeton/
107-
warning: Please see your confirmation email to access the Code4Lib rate referenced above.
108-
- name: Nassau Inn
109-
street: 10 Palmer Square
110-
city-state: Princeton, NJ
111-
postal-code: 08542
112-
phone: 609-921-7500
113-
website: https://nassauinn.com/
114-
- name: Peacock Inn
115-
street: 20 Bayard Lane
116-
city-state: Princeton, NJ
117-
postal-code: 08540
118-
phone: 609-924-1707
119-
website: https://www.peacockinn.com/
120-
- name: Hyatt Regency Princeton
121-
street: 102 Carnegie Center
122-
city-state: Princeton, NJ
123-
postal-code: 08540
124-
phone: 609-987-1234
125-
website: https://www.hyatt.com/en-US/hotel/new-jersey/hyatt-regency-princeton/princ
126-
- name: Chauncey Conference Center
127-
street: One Chauncey Road
128-
city-state: Princeton, NJ
129-
postal-code: 08541
130-
phone: 609-921-3600
131-
website: https://www.acc-chaunceyconferencecenter.com/accommodations
132-
- name: Residence Inn Princeton at Carnegie Center
133-
street: 3563 US Highway 1
134-
city-state: Princeton, NJ
135-
postal-code: 08540
136-
phone: 609-799-0550
137-
website: https://www.marriott.com/en-us/hotels/ttnww-residence-inn-princeton-at-carnegie-center/overview
138-
- name: Hyatt Place Princeton
139-
street: 3565 US Highway 1
140-
city-state: Princeton, NJ
141-
postal-code: 08540
142-
phone: 609-720-0200
143-
website: https://www.hyatt.com/en-US/hotel/new-jersey/hyatt-place-princeton/ewrzp
104+
# Example values:
105+
# - name: The Graduate
106+
# street: 10 Chambers Street
107+
# city-state: Princeton, NJ
108+
# postal-code: 08540
109+
# phone: 609-380-1457
110+
# website: https://www.hilton.com/en/hotels/pctgpgu-graduate-princeton/
111+
# warning: Please see your confirmation email.
144112

145113

146114
################

_layouts/secondary-nav.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<div class="col-12 col-md-3 col-lg-2">
77
<nav>
88
{% if page.nav == 'general-info' %}
9-
<ul class="nav nav-pills nav-stacked secondarynav flex-md-column">
9+
<ul class="nav nav-pills nav-stacked secondarynav flex-md-column">
1010
{% else %}
11-
<ul class="nav nav-pills nav-stacked secondarynav">
11+
<ul class="nav nav-pills nav-stacked secondarynav">
1212
{% endif %}
1313
{% for nav in site.data.navs[page.nav] %}
1414
{% if page.active == nav.name %}
@@ -41,3 +41,13 @@
4141
</section>
4242

4343
{% include footer.html %}
44+
45+
<script>
46+
// for each entry in the secondary nav, remove it if no matching section exists
47+
document.querySelectorAll('.secondarynav ul a').forEach(element => {
48+
const sectionId = element.getAttribute('href')
49+
if (sectionId && !document.querySelector(sectionId)) {
50+
element.parentElement.remove()
51+
}
52+
})
53+
</script>

general-info/about-c4l.html

Lines changed: 32 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,36 @@
66
---
77

88
<section class="general-info">
9-
<div class="container-fluid">
10-
<div class="row">
11-
<div class="col-12">
12-
<h1>Who is Code4Lib?</h1>
13-
<img src="{{ "/assets/img/persistent/chicago-uncropped.jpg" | relative_url }}" title="credit: Ray Schwartz, Flickr" alt="Code4LibConference" class="img-fluid">
14-
<p class="text-right small"><a href="https://www.flickr.com/photos/schwartzray/12121269326/in/album-72157640116429213/">photo: Ray Schwartz on Flickr</a></p>
15-
<h2>Code4Lib is a vibrant and diverse community.</h2>
16-
<p>
17-
We are developers and technologists for libraries, museums, and
18-
archives who have a strong commitment to open technologies.
19-
<a href="https://code4lib.org/">Code4Lib</a> began as a simple
20-
<a href="https://wiki.code4lib.org/MailingList">mailing list</a>
21-
in 2003 and held its first face-to-face meeting in 2005 in Chicago.
22-
The first official annual conference was held in 2006 in Corvallis,
23-
Oregon.
24-
Nowadays, the Code4Lib community gravitates around the same listserv,
25-
an annual conference with hundreds of attendees, as well as
26-
<a href="https://code4lib.org/irc/">IRC and Slack channels</a>
27-
that are open for anyone to join.
28-
We are dedicated to being a diverse and inclusive community of
29-
technologists seeking to share ideas and build collaboration.
30-
You can <a href="https://github.com/code4lib/code-of-conduct/blob/main/code_of_conduct.md">
31-
read our Code of Conduct here</a>.
32-
</p>
33-
<p>View some of our past conference websites:</p>
34-
<ul>
35-
{% comment %}
36-
Cast year string to int then iterate down, we can go back as far
37-
as the first Jekyll site from 2016 (Philadelphia).
38-
{% endcomment %}
39-
{% assign conf_year = site.data.conf.year | minus: 0 %}
40-
{% for i in (1..4) %}
41-
<li><a href="https://{{ conf_year | minus: i }}.code4lib.org">Code4Lib {{ conf_year | minus: i }}</a></li>
42-
{% endfor %}
43-
</ul>
44-
</div>
45-
</div>
46-
</div>
9+
<h1>Who is Code4Lib?</h1>
10+
<img src="{{ "/assets/img/persistent/chicago-uncropped.jpg" | relative_url }}" title="credit: Ray Schwartz, Flickr" alt="Code4LibConference" class="img-fluid">
11+
<p class="text-right small"><a href="https://www.flickr.com/photos/schwartzray/12121269326/in/album-72157640116429213/">photo: Ray Schwartz on Flickr</a></p>
12+
<h2>Code4Lib is a vibrant and diverse community.</h2>
13+
<p>
14+
We are developers and technologists for libraries, museums, and
15+
archives who have a strong commitment to open technologies.
16+
<a href="https://code4lib.org/">Code4Lib</a> began as a simple
17+
<a href="https://wiki.code4lib.org/MailingList">mailing list</a>
18+
in 2003 and held its first face-to-face meeting in 2005 in Chicago.
19+
The first official annual conference was held in 2006 in Corvallis,
20+
Oregon.
21+
Nowadays, the Code4Lib community gravitates around the same listserv,
22+
an annual conference with hundreds of attendees, as well as
23+
<a href="https://code4lib.org/irc/">IRC and Slack channels</a>
24+
that are open for anyone to join.
25+
We are dedicated to being a diverse and inclusive community of
26+
technologists seeking to share ideas and build collaboration.
27+
You can <a href="https://github.com/code4lib/code-of-conduct/blob/main/code_of_conduct.md">
28+
read our Code of Conduct here</a>.
29+
</p>
30+
<p>View some of our past conference websites:</p>
31+
<ul>
32+
{% comment %}
33+
Cast year string to int then iterate down, we can go back as far
34+
as the first Jekyll site from 2016 (Philadelphia).
35+
{% endcomment %}
36+
{% assign conf_year = site.data.conf.year | minus: 0 %}
37+
{% for i in (1..4) %}
38+
<li><a href="https://{{ conf_year | minus: i }}.code4lib.org">Code4Lib {{ conf_year | minus: i }}</a></li>
39+
{% endfor %}
40+
</ul>
4741
</section>

0 commit comments

Comments
 (0)