Skip to content

Commit 5a8dbaa

Browse files
author
Anne-Julia Seitz
committed
Rename taxonomy from tags to topic and fix display text
- Changed taxonomy name from 'tags' to 'topic' in config.toml - Updated all templates to use 'topic' taxonomy instead of 'tags' - Fixed "All Tagss" display text to show "All Topics" - Updated event content to use topic taxonomy - Updated CLAUDE.md documentation to reflect topic taxonomy - Updated site title in navbar to "Berlin PHP User Group"
1 parent dd52a45 commit 5a8dbaa

7 files changed

Lines changed: 16 additions & 16 deletions

File tree

CLAUDE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ date = "YYYY-MM-DD"
4747

4848
[taxonomies]
4949
speaker = ["Speaker Name 1", "Speaker Name 2"]
50-
tags = ["Topic1", "Topic2"]
50+
topic = ["Topic1", "Topic2"]
5151

5252
[extra]
5353
location = "Venue Name"
@@ -57,14 +57,14 @@ location = "Venue Name"
5757
### Taxonomies System
5858
The site uses two main taxonomies defined in `config.toml`:
5959
- `speaker`: Links events by speakers (generates `/speaker/` pages)
60-
- `tags`: Links events by topics (generates `/tags/` pages)
60+
- `topic`: Links events by topics (generates `/topic/` pages)
6161

6262
### Template Architecture
6363
- `base.html`: Main layout with Bulma navbar, footer, meta tags
6464
- `events.html`: Event listing with pagination and sidebar
6565
- `event.html`: Individual event page template
6666
- `taxonomy_list.html`: Lists all speakers/tags
67-
- `taxonomy_single.html`: Shows all events for a specific speaker/tag
67+
- `taxonomy_single.html`: Shows all events for a specific speaker/topic
6868

6969
## CSS Framework: Bulma Only
7070

@@ -115,7 +115,7 @@ When migrating events from old Jekyll site (`/home/dazz/Code/berlinphp/berlinphp
115115
## Configuration Notes
116116

117117
**config.toml Key Settings:**
118-
- Taxonomies: `speaker` and `tags` with RSS feeds enabled
118+
- Taxonomies: `speaker` and `topic` with RSS feeds enabled
119119
- Pagination: Events paginated at 20 per page
120120
- Feeds: RSS enabled for main content and taxonomies
121121
- Social: Mastodon, GitHub, Flickr integration configured
@@ -140,7 +140,7 @@ When migrating events from old Jekyll site (`/home/dazz/Code/berlinphp/berlinphp
140140
- `/`: Homepage with hero and recent events
141141
- `/events/`: Paginated archive of all meetups
142142
- `/speaker/`: Taxonomy pages for speakers
143-
- `/tags/`: Taxonomy pages for topics
143+
- `/topic/`: Taxonomy pages for topics
144144
- `/pages/`: Static pages (contact, imprint, etc.)
145145

146146
**Static Assets in `/static/`:**

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ generate_feeds = true
1818

1919
# Taxonomies
2020
taxonomies = [
21-
{ name = "tags", feed = true },
21+
{ name = "topic", feed = true },
2222
{ name = "speaker", feed = true },
2323
]
2424

content/events/2012-03-06-march-2012-meetup/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ date = "2012-03-06"
55

66
[taxonomies]
77
speaker = ["Daniel Fahlke", "Thomas Lohner", "Martin Rothenberger", "Fabian Blechschmidt", "Markus Will", "Nicole Cordes"]
8-
tags = ["E-commerce", "Shop Systems", "Sylius", "OXID", "Magento", "osCommerce", "TYPO3"]
8+
topic = ["E-commerce", "Shop Systems", "Sylius", "OXID", "Magento", "osCommerce", "TYPO3"]
99

1010
[extra]
1111
location = "co.up"

templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<div class="navbar-brand">
4343
<a class="navbar-item is-size-4" href="{{ get_url(path='/') }}">
4444
<img src="{{ get_url(path='logo.svg') }}" alt="Berlin PHP" width="48" height="48" style="margin-right: 1rem;">
45-
<strong>Berlin PHP</strong>
45+
<strong>Berlin PHP User Group</strong>
4646
</a>
4747

4848
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarMain">

templates/event.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ <h4 class="title is-4">👥 Speakers</h4>
5858
</div>
5959
{% endif %}
6060

61-
{% if page.taxonomies.tags %}
61+
{% if page.taxonomies.topic %}
6262
<div class="box">
6363
<h4 class="title is-4">🏷️ Topics</h4>
6464
<div class="field is-grouped is-grouped-multiline">
65-
{% for tag in page.taxonomies.tags %}
65+
{% for topic in page.taxonomies.topic %}
6666
<div class="control">
67-
<a href="/tags/{{ tag | slugify }}/" class="tag is-php">{{ tag }}</a>
67+
<a href="/topic/{{ topic | slugify }}/" class="tag is-php">{{ topic }}</a>
6868
</div>
6969
{% endfor %}
7070
</div>

templates/events.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ <h3 class="title is-4">
5353
</div>
5454
{% endif %}
5555

56-
{% if page.taxonomies.tags %}
56+
{% if page.taxonomies.topic %}
5757
<div class="field is-grouped is-grouped-multiline">
5858
<div class="control">
5959
<span class="tag">
6060
<strong>Topics:</strong>
6161
</span>
6262
</div>
63-
{% for tag in page.taxonomies.tags %}
63+
{% for topic in page.taxonomies.topic %}
6464
<div class="control">
65-
<a href="/tags/{{ tag | slugify }}/" class="tag is-php">{{ tag }}</a>
65+
<a href="/topic/{{ topic | slugify }}/" class="tag is-php">{{ topic }}</a>
6666
</div>
6767
{% endfor %}
6868
</div>
@@ -125,7 +125,7 @@ <h4 class="title is-4">Browse by Category</h4>
125125
<a href="/speaker/" class="tag is-medium">👤 Speakers</a>
126126
</div>
127127
<div class="control">
128-
<a href="/tags/" class="tag is-medium">🏷️ Topics</a>
128+
<a href="/topic/" class="tag is-medium">🏷️ Topics</a>
129129
</div>
130130
</div>
131131
</div>

templates/taxonomy_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h1 class="title is-1">
1616
{% if taxonomy.name == "speaker" %}
1717
👥 All Speakers
1818
{% else %}
19-
🏷️ All {{ taxonomy.name | title }}s
19+
🏷️ All Topics
2020
{% endif %}
2121
</h1>
2222
<p class="subtitle">Browse {{ taxonomy.name }}s from Berlin PHP events</p>

0 commit comments

Comments
 (0)