12345678910111213 |
- <div class="widget widget-category">
- <h4 class="widget-title">文章分類</h4>
- {{- if isset site.Taxonomies "categories" }}
- {{- if not (eq (len site.Taxonomies.categories) 0) }}
- <ul class="widget-category-list">
- {{- range $name, $items := site.Taxonomies.categories }}
- <!-- <li><a href="{{ `categories/` | relLangURL }}{{ $name | urlize | lower }}">{{ $name | title | humanize }}</a></li> -->
- <li><a href="{{ `categories/` | relLangURL }}{{ $name | safeHTML | lower }}">{{ $name | safeHTML }}</a></li>
- {{- end }}
- </ul>
- {{- end }}
- {{- end }}
- </div>
|