Skip to content

Commit 103d5de

Browse files
authored
Remapping and reconfiguring from hacknights to meetup and events (#59)
* essential reconfiguration for config file and name change for layout file * rename list page and site wide collection item renaming * data reference name swaps * picture, the thumbnail utility, and css relabelling / reconfiguring * picture config changes * tag reference changes for jsonld SEO configuration, tag data regeneration * repoint anchor tags to updated events path * list page redirect specification * liquid templating logic, comments, and display text replacment * wip submodule reference * updating submodule reference
1 parent c1a76c1 commit 103d5de

File tree

20 files changed

+134
-127
lines changed

20 files changed

+134
-127
lines changed

_config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ collections:
4444
output: true
4545
sort_by: date
4646
permalink: /:collection/:path/
47-
hacknights:
47+
meetups:
4848
output: true
4949
sort_by: date
50-
permalink: /:collection/:path/
50+
permalink: /events/:path/
5151
organizations:
5252
output: true
5353
permalink: /:collection/:path/
@@ -73,9 +73,9 @@ defaults:
7373
sort_by: date
7474
- scope:
7575
path: ""
76-
type: hacknights
76+
type: meetups
7777
values:
78-
layout: hacknight
78+
layout: meetup
7979
sort_by: date
8080
- scope:
8181
path: ""
@@ -111,8 +111,8 @@ plugins:
111111

112112
# jekyll_picture_tag settings
113113
picture:
114-
source: 'archives/images'
115-
output: 'assets/thumbs'
114+
source: "archives/images"
115+
output: "assets/thumbs"
116116
ignore_missing_images: true
117117

118118
use_html_extension: false

_data/categories.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ format:
1212
- practitioner
1313
- resource-list
1414
- volunteering
15+
venue-category:
16+
- Industry
17+
- Nonprofit
18+
- Online
1519
contributors:
1620
- open
1721
- paused

_data/navigation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ main:
99
url: "/announcements"
1010
collection: true
1111
- label: "Meetups"
12-
url: "/hacknights"
12+
url: "/events"
1313
collection: true
1414
- label: "Projects"
1515
url: "/projects"

_data/picture.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ presets:
99
# loading: lazy
1010
# decoding: async
1111

12-
hacknight:
12+
events:
1313
formats: [webp]
1414
widths: [690]
1515
sizes:
1616
mobile: 100vw
17-
# sync with .hacknight-thumbnail in custom.css - 2x width
17+
# sync with .meetup-thumbnail in custom.css - 2x width
1818
default: 690px
1919
attributes:
2020
loading: lazy
2121

2222
media_queries:
23-
mobile: '(max-width: 600px)'
23+
mobile: "(max-width: 600px)"

_data/tags.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
type:
22
- announcement
33
- breakout-project
4-
- hacknight
54
- initiative
5+
- meetup
66
- organization
77
- person
88
- project

_includes/backlinks.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
backlinks.html
33

44
Usage:
5-
{% include backlinks.html collections=site.hacknights fields="team,speakers" title="Mentioned In" %}
5+
{% include backlinks.html collections=site.meetups fields="team,speakers" title="Mentioned In" %}
66

77
Description:
88
Displays a list of documents that reference the current page via wikilinks (`[[slug]]`) in specified fields.
99
Useful for building "backlink" or "mentioned in" sections to show where a person, team, or project is referenced.
1010

1111
Parameters:
12-
- `collections`: The collection(s) to scan for backlinks (e.g. `site.hacknights`)
12+
- `collections`: The collection(s) to scan for backlinks (e.g. `site.meetups`)
1313
- `fields`: Comma-separated list of front matter fields to check for wikilinks (e.g. `team,speakers`)
1414
- `title`: Optional section heading (defaults to "Mentioned In")
1515
- `current_slug`: Optional override for the page slug (otherwise uses current page path)

_includes/jsonld.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- "type/project" → CreativeWork
77
- "type/person" → Person
88
- "type/organization" → Organization
9-
- "type/hacknight" → Event
9+
- "type/meetup" → Event
1010
- "type/venue" → Place
1111
- (fallback) → WebPage
1212

@@ -70,7 +70,7 @@
7070
{% endif %}
7171
"url": {{ page.url | absolute_url | jsonify }}
7272

73-
{% elsif page_tags contains "type/hacknight" %}
73+
{% elsif page_tags contains "type/meetup" %}
7474
"@type": "Event",
7575
"name": {{ page.title | jsonify }},
7676
"startDate": "{{ page.date }}",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<nav aria-label="breadcrumb">
2929
<ul>
3030
<li><a href="{{ site.baseurl }}/">Home</a></li>
31-
<li><a href="{{ site.baseurl }}/hacknights/">Meetups</a></li>
31+
<li><a href="{{ site.baseurl }}/events/">Meetups</a></li>
3232
<li>Meetup #{{ page.number }}</li>
3333
</ul>
3434
</nav>
@@ -89,7 +89,7 @@ <h2>Speakers</h2>
8989

9090
<aside>
9191
{% if page.image %}
92-
{% picture hacknight hacknights/{{ page.image }} alt="{{ event.topic }}" class="hacknight-image" %}
92+
{% picture events /events/{{ page.image }} alt="{{ event.topic }}" class="meetup-image" %}
9393
{% endif %}
9494
<h2>Details</h2>
9595
{% if page.eventUrl %}

_layouts/organization.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ <h2>Tags</h2>
5757
{% include social-links.html social=page.social %}
5858
{% endif %}
5959

60-
{% assign all_collections = site.hacknights | concat: site.projects | concat: site.people | concat: site.venues %}
60+
{% assign all_collections = site.meetups | concat: site.projects | concat: site.people | concat: site.venues %}
6161

6262
<footer>
6363
{% include edit-link.html %}

_layouts/person.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h2>Projects</h2>
7878
{% include social-links.html social=page.social %}
7979
{% endif %}
8080

81-
{% assign all_collections = site.hacknights | concat: site.projects %}
81+
{% assign all_collections = site.meetups | concat: site.projects %}
8282

8383
<footer>
8484
{% include edit-link.html %}

0 commit comments

Comments
 (0)