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

github.com/pravin/hugo-theme-prav.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPravin Paratey <pravin@paratey.com>2020-05-15 18:56:24 +0300
committerPravin Paratey <pravin@paratey.com>2020-05-15 18:56:24 +0300
commit38f942bc47d21b5620032acd9da8606ad19baf86 (patch)
treea719fc8d2a1aeed4cf04a816db7856894e1f6d09
parent77fb6836b1a4b7346b7e33e26e4d47e04a3f735a (diff)
Tags page looks prettier
-rw-r--r--layouts/_default/list.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 30fcf17..a0f9e53 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -4,6 +4,18 @@
<h1 style="text-align: center">~ {{ humanize .Title }} ~</h1>
</div>
<div class="pure-g">
+ {{ if (eq .RelPermalink "/tags/") }}
+ <div class="pure-u-1" style="display:flex;">
+ <div class="pad">
+ <div style="text-align:center" class="tags">
+ {{ range $.Site.Taxonomies.tags.ByCount }}
+ <a href="/tags/{{ .Name }}" class="pure-button" style="font-size: {{math.Log (add 1 .Count) }}em;"> {{ .Name }}
+ <small>({{ .Count }})</small></a>
+ {{end}}
+ </div>
+ </div>
+ </div>
+ {{ else }}
{{ range .Data.Pages }}
<div class="pure-u-1 pure-u-sm-1-2 pure-u-md-1-2 pure-u-lg-1-3" style="display:flex">
<div class="list">
@@ -20,6 +32,7 @@
</div>
</div>
{{ end }}
+ {{ end }}
</div>
{{ end }} \ No newline at end of file