Add taglist to main blog listing
All checks were successful
Build and copy to prod / build-and-copy (push) Successful in 2m8s
All checks were successful
Build and copy to prod / build-and-copy (push) Successful in 2m8s
This commit is contained in:
parent
2c4187a0df
commit
2c56a12736
@ -13,6 +13,11 @@
|
|||||||
<h2><a href="{{ item.url }}">{{ item.data.title | safe }}</a></h2>
|
<h2><a href="{{ item.url }}">{{ item.data.title | safe }}</a></h2>
|
||||||
<time class="block" datetime="{{ item.date | dateToRfc3339 }}">{{ item.date | dateDisplay }}</time>
|
<time class="block" datetime="{{ item.date | dateToRfc3339 }}">{{ item.date | dateDisplay }}</time>
|
||||||
<p class="e-content p-summary">{{ item | excerpt }}</p>
|
<p class="e-content p-summary">{{ item | excerpt }}</p>
|
||||||
|
<ul role="list" class="tags">
|
||||||
|
{% for t in item.data.tags | except("posts") | except("draft") %}
|
||||||
|
<li><a href="/post/tag/{{ t }}" rel="tag">#{{ t }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
<a href="{{ item.url }}" class="inline-block">Read more</a>
|
<a href="{{ item.url }}" class="inline-block">Read more</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -1,8 +1,12 @@
|
|||||||
li:has(a[rel="tag"]) {
|
li:has(> a[rel="tag"]) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-inline-end: 1ch;
|
margin-inline-end: 1ch;
|
||||||
|
|
||||||
&:not(:last-child):after {
|
&:not(:last-child):after {
|
||||||
content: ",";
|
content: ",";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags {
|
||||||
|
color: var(--color-subtle);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user