diff options
| author | Eltrac <hi@guhub.cn> | 2025-04-16 22:50:22 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-04-16 22:50:22 +0800 |
| commit | f673c0a934ee27d671b42dcd6904225d066633b7 (patch) | |
| tree | b7ace441990a7ee636b3e5ac4fb64fae2098cb3d /layouts/_default | |
| parent | c5d8f6b17b2e4805f3790af952a0ffcc31b41c00 (diff) | |
feat: add icon to each category
Former-commit-id: 039f7f02e0baf2916e5776eb54ee3c9952cf24f9
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/taxonomy.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 5e0dbdeb..adcb29c2 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -21,7 +21,11 @@ <section class="taxonomy taxonomy-categories row"> {{ range .Site.Taxonomies.categories.Alphabetical }} <div class="taxonomy-categories-item col-xs-12 col-sm-6"> - <h3><a href="{{ .Page.RelPermalink }}">{{ .Page.LinkTitle }}</a></h3> + <h3> + <a href="{{ .Page.RelPermalink }}"> + {{ with .Page.Params.icon }}<span>{{ . }}</span>{{ end }} {{ .Page.LinkTitle }} + </a> + </h3> <ul class="category-articles"> {{ range first 3 .Pages }} <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> |
