🐛 Fixed the sub category link without urlize.

This commit is contained in:
elkan1788 2024-11-24 15:35:56 +08:00
parent fdfcadadcc
commit 976af2c92d

View File

@ -8,7 +8,7 @@
{{ print (T "PostMeta.category") (T "Symbol.colon") }}
</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing">
<a href="{{ "/categories/" | relLangURL }}{{ (index (last 1 .) 0) | urlize }}" itemprop="url" rel="index">
<a href="{{ "/categories/" | relLangURL }}{{ add (index (last 1 .) 0) "/" | urlize }}" itemprop="url" rel="index">
<span itemprop="name">{{ delimit . "/" }}</span>
</a>
</span>