diff options
author | Zachary Betz <zwbetz@gmail.com> | 2019-02-27 06:15:14 +0300 |
---|---|---|
committer | Zachary Betz <zwbetz@gmail.com> | 2019-02-27 06:15:14 +0300 |
commit | 905ed5f7eb85d6a332194e9a76439db724159580 (patch) | |
tree | 36a3cfbe377bf7d561005d00b4e9db106accec83 /layouts | |
parent | 9134c0596ed4f0b0a6f2118d58123697dc4d17a7 (diff) |
Add badge to tags list. Fix post type
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/terms.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index e92be4a..350f62e 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -7,9 +7,8 @@ {{ $count := .Count }} {{ with $.Site.GetPage (printf "/%s/%s" $type $name) }} <h2 class="post-list"> - <a href="{{ .Permalink }}"> - {{ printf "(%d) %s" $count $name }} - </a> + <span class="badge">{{ $count }}</span> + <a href="{{ .Permalink }}">{{ $name }}</a> </h2> {{ end }} {{ end }} |