Skip to content

Commit fdd9107

Browse files
committed
fix: improve subcategory badge display and filtering
- Fix badges showing empty text by adding Jekyll template logic - Add proper colors from types.yml data - Make badges clickable with cursor pointer - Connect badge clicks to multiselect filtering - Fix case sensitivity issue in filtering selectors - Add header updates for consistency
1 parent 684056b commit fdd9107

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

_includes/header.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@
7070
<button class="btn btn-outline-dark my-2 my-sm-0" type="submit">{% t titles.search %}</button>
7171
</form>
7272
<ul class="navbar-nav ml-auto my-2 my-lg-0">
73+
<li>
74+
<a href="{{ site.baseurl }}/my-conferences/" class="nav-link" style="border-bottom: none">
75+
<i class="fas fa-bookmark"></i> My Conferences
76+
<span class="badge badge-warning" id="fav-count"></span>
77+
</a>
78+
</li>
7379
<li class="nav-item dropdown">
7480
<a
7581
class="nav-link dropdown-toggle"

_includes/index_conf_subs.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
<div class="row">
2-
<div class="col-6">
2+
<div class="col-12">
33
{% for sub in include.subs %}
4-
<span
5-
title="Click to only show {{sub | strip}} conferences"
6-
data-sub="{{sub | strip}}"
7-
class="badge badge-light conf-sub {{sub | strip}}-tag"
8-
></span>
4+
{% assign sub_trimmed = sub | strip %}
5+
{% for type in site.data.types %}
6+
{% if type.sub == sub_trimmed %}
7+
<span
8+
title="Click to only show {{type.sub}} conferences"
9+
data-sub="{{type.sub}}"
10+
class="badge badge-light conf-sub {{type.sub}}-tag"
11+
style="background-color: {{type.color}}; color: white; cursor: pointer;"
12+
>{{type.name | downcase}}</span>
13+
{% endif %}
14+
{% endfor %}
915
{% endfor %}
10-
</div>
11-
<div class="col-6">
12-
<div class="calendar"></div>
1316
</div>
1417
</div>

0 commit comments

Comments
 (0)