File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments