hugo-theme-next/layouts/partials/post/header_meta/categories.html
elkan1788 25aff95260 🐛 Fixed the font icon error, Resolved #134
Because the offical fontawsome had update the font size, there will use new class of icon reference.
2023-12-31 08:23:15 +08:00

17 lines
622 B
HTML

{{ if .Site.Params.postMeta.categories }}
{{ with .Params.categories }}
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="fas fa-solid fa-folder-open"></i>
</span>
<span class="post-meta-item-text" title="{{ T "PostMeta.category" }}">
{{ 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">
<span itemprop="name">{{ delimit . "/" }}</span>
</a>
</span>
</span>
{{ end }}
{{ end }}