Skip to content

Commit 91e4b98

Browse files
committed
Simplify tags.md structure and styling to match home page exactly
1 parent acb595f commit 91e4b98

1 file changed

Lines changed: 8 additions & 26 deletions

File tree

tags.md

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ permalink: /tags/
1111
{% for tag in tags %}
1212
{% assign tagname = tag[0] %}
1313
{% assign posts = tag[1] %}
14-
<span class="tag-item">
15-
<a href="#{{ tagname | slugify }}" class="tag" data-count="{{ posts.size }}">
16-
{{ tagname }} ({{ posts.size }})
17-
</a>
18-
</span>
14+
<a href="#{{ tagname | slugify }}" class="tag" data-count="{{ posts.size }}">
15+
{{ tagname }} ({{ posts.size }})
16+
</a>
1917
{% endfor %}
2018
</div>
2119

@@ -39,21 +37,14 @@ permalink: /tags/
3937
{% endfor %}
4038

4139
<style>
42-
/* Tag cloud styling - matches home page exactly with important overrides */
40+
/* Tag cloud styling - matches home page exactly */
4341
.tag-cloud {
4442
margin: 20px 0 !important;
4543
line-height: 2 !important;
4644
}
4745

48-
.tag-item {
49-
display: inline-block !important;
50-
margin: 5px !important;
51-
}
52-
53-
/* Use exact same styling as home page post-tags - override theme completely */
54-
.tag-cloud .tag,
55-
.tag-cloud a,
56-
.tag-cloud a.tag {
46+
/* Match home page post-tags styling exactly */
47+
.tag-cloud .tag {
5748
display: inline-block !important;
5849
background-color: #f1f3f4 !important;
5950
color: #5f6368 !important;
@@ -62,24 +53,15 @@ permalink: /tags/
6253
border-radius: 0.25rem !important;
6354
font-size: 0.8rem !important;
6455
text-decoration: none !important;
65-
border: none !important;
6656
}
6757

68-
.tag-cloud .tag:hover,
69-
.tag-cloud a:hover,
70-
.tag-cloud a.tag:hover {
58+
.tag-cloud .tag:hover {
7159
background-color: #e8eaed !important;
7260
color: #202124 !important;
7361
text-decoration: none !important;
7462
}
7563

76-
/* Remove any theme icons or decorations */
77-
.tag-cloud .tag:before,
78-
.tag-cloud a:before,
79-
.tag-cloud a.tag:before {
80-
display: none !important;
81-
content: none !important;
82-
}
64+
8365

8466
.tag-posts {
8567
list-style: none;

0 commit comments

Comments
 (0)