Display posts count for each tag in the tag list
And increase the "small" for size to closest pixel-perfect value
This commit is contained in:
@ -87,7 +87,7 @@ section#comments {
|
||||
background-color: var(--fg-muted-1);
|
||||
padding: 0.25rem 0.75rem;
|
||||
color: var(--fg-color);
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.875rem;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
@ -128,7 +128,7 @@ section#comments {
|
||||
time {
|
||||
grid-area: time;
|
||||
color: var(--fg-muted-5);
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
main {
|
||||
|
@ -104,6 +104,6 @@
|
||||
all: unset;
|
||||
margin: 0 auto;
|
||||
color: var(--fg-muted-5);
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
}
|
||||
|
@ -15,24 +15,48 @@
|
||||
}
|
||||
}
|
||||
|
||||
.tag {
|
||||
a {
|
||||
transition: var(--transition);
|
||||
box-shadow: var(--edge-highlight);
|
||||
border-radius: 999px;
|
||||
background-color: var(--fg-muted-1);
|
||||
padding: 0.25rem 0.75rem;
|
||||
color: var(--fg-color);
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.875rem;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--primary-color-alpha);
|
||||
color: var(--primary-color);
|
||||
text-decoration: none;
|
||||
|
||||
.count {
|
||||
background-color: var(--primary-color-alpha);
|
||||
color: var(--primary-color);
|
||||
}
|
||||
}
|
||||
|
||||
&:has(.tag) {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.tag {
|
||||
display: inline-block;
|
||||
padding: 0.25rem 0.5rem 0.25rem 0.75rem;
|
||||
|
||||
&::before {
|
||||
content: "#";
|
||||
}
|
||||
}
|
||||
|
||||
.count {
|
||||
display: inline-block;
|
||||
transition: var(--transition);
|
||||
border-radius: 0 999px 999px 0;
|
||||
background-color: var(--fg-muted-1);
|
||||
padding: 0.25rem 0.625rem 0.25rem 0.5rem;
|
||||
color: var(--fg-muted-4);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ h3 {
|
||||
|
||||
small {
|
||||
color: var(--fg-muted-5);
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
abbr[title] {
|
||||
@ -38,7 +38,7 @@ abbr[title] {
|
||||
|
||||
figcaption {
|
||||
color: var(--fg-muted-4);
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.875rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ kbd {
|
||||
border-radius: var(--rounded-corner-small);
|
||||
background-color: var(--fg-muted-2);
|
||||
padding: 0.125rem 0.375rem;
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.875rem;
|
||||
line-height: normal;
|
||||
|
||||
// Small nice thingy, keys can be pressed!
|
||||
|
@ -6,7 +6,7 @@
|
||||
<br />
|
||||
<ul class="tags">
|
||||
{% for tag in terms %}
|
||||
<li><a class="tag" href="{{ get_taxonomy_url(kind='tags', name=tag.name, lang=lang) }}">{{ tag.name }}</a></li>
|
||||
<li><a href="{{ get_taxonomy_url(kind='tags', name=tag.name, lang=lang) }}"><span class="tag">{{ tag.name }}</span><span class="count">{{ tag.pages | length }}</span></a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock content %}
|
||||
|
Reference in New Issue
Block a user