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 | 039f7f02e0baf2916e5776eb54ee3c9952cf24f9 (patch) | |
| tree | af4e076cd19c6a573a237fa8aca9c02510d06aa8 /layouts | |
| parent | 8aec9f0f687755e3af2be8e7580a128b45812a57 (diff) | |
feat: add icon to each category
Diffstat (limited to 'layouts')
| -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> |
