fix tags with spaces

add a filter that replaces tags e.g.
"tag name" → {name: "tag name", slug: "tag_name"}
This commit is contained in:
rhiannon morris 2022-09-17 20:54:16 +02:00
parent 5108acba61
commit be46a2fc5c
9 changed files with 87 additions and 54 deletions

View file

@ -8,7 +8,7 @@ $endif$
$if(posts)$
$postlist()$
$elseif(tags)$
$elseif(all-tags)$
$taglist()$
$endif$

View file

@ -13,7 +13,7 @@ $head()$
tags:
<ul>
$for(tags)$
<li><a href=/tag-$it$.html>$it$</a>
<li><a href=/tag-$it.slug$.html>$it.name$</a>
$endfor$
</ul>
</nav>

View file

@ -1,6 +1,6 @@
<main>
<ul class=tag-list>
$for(tags)$
$for(all-tags)$
<li>
<a href=tag-$it.slug$.html>$it.name$</a>
<span class=count>($it.count$)</span>