diff options
author | Leonardo Faria <leonardofaria@gmail.com> | 2020-06-30 05:34:07 +0300 |
---|---|---|
committer | Leonardo Faria <leonardofaria@gmail.com> | 2020-06-30 05:34:07 +0300 |
commit | 50b069b6be32b0df3c643943d2728e58da00ab64 (patch) | |
tree | d7e72483aa08f206131071a774a9bdedc134d450 /layouts | |
parent | 8ac9e9d19669b2a7837e452af66ada0983567e20 (diff) |
Add tags in the archive page
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/archives.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index 1931ce5..ba0f97e 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -8,6 +8,15 @@ <article class="article"> <h1 class="artitle__title"><a href="{{.Permalink}}">{{ .Title }}</a></h1> + I like to talk about: + {{range $name, $taxonomy := .Site.Taxonomies.tags}} {{ $cnt := .Count }} + {{ with $.Site.GetPage (printf "/tags/%s" $name) }} + <a href={{ .RelPermalink }} title="All pages with tag {{$name}}" class="no-underline"> + {{$name}} <sup>{{$cnt}}</sup> + </a> + {{end}} + {{end}} + {{ range site.RegularPages.GroupByDate "2006" -}} {{ partial "post-summary.html" . }} {{ end }} |