Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/leonardofaria/bento.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Faria <leonardofaria@gmail.com>2020-06-30 05:34:07 +0300
committerLeonardo Faria <leonardofaria@gmail.com>2020-06-30 05:34:07 +0300
commit50b069b6be32b0df3c643943d2728e58da00ab64 (patch)
treed7e72483aa08f206131071a774a9bdedc134d450 /layouts
parent8ac9e9d19669b2a7837e452af66ada0983567e20 (diff)
Add tags in the archive page
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/archives.html9
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 }}