Skip to content

Commit 19fe854

Browse files
committed
Removed "All"
1 parent 6eb2c24 commit 19fe854

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

tags.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ <h1 class="page-title" id="page-title">All Posts</h1>
4141

4242
{% assign sorted_tags = entries | sort | reverse %}
4343
{% assign total_tags = sorted_tags | size %}
44-
45-
<a href="/tags/" class="tag" data-tag="all" data-color="lavender">ALL</a>
44+
4645
{% for tag_entry in sorted_tags limit:25 %}
4746
{% assign parts = tag_entry | split: "|" %}
4847
{% assign tag_name = parts[1] %}
@@ -95,7 +94,7 @@ <h2 class="post-card-title">
9594
const urlParams = new URLSearchParams(window.location.search);
9695
const selectedTag = urlParams.get('tag');
9796

98-
if (selectedTag && selectedTag !== 'all') {
97+
if (selectedTag && selectedTag.toLowerCase() !== 'all') {
9998
const tag = selectedTag.toLowerCase();
10099

101100
// Update page title
@@ -120,9 +119,6 @@ <h2 class="post-card-title">
120119
post.style.display = 'none';
121120
}
122121
});
123-
} else {
124-
// Show "All" as active
125-
document.querySelector('.tags-list .tag[data-tag="all"]')?.classList.add('active');
126122
}
127123

128124
// Show more tags functionality

0 commit comments

Comments
 (0)