aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/terms.html
diff options
context:
space:
mode:
authorÓscar Nájera <hello@oscarnajera.com>2018-07-15 23:47:14 +0200
committerÓscar Nájera <hello@oscarnajera.com>2018-07-15 23:53:48 +0200
commite143b76386ff84d8d7b51c465043aeadfcae97bf (patch)
tree0eca586a2b7024cfbe46187cb2f4ebebd7b65e21 /layouts/_default/terms.html
parent7b7fe5cd41b44615509a4c9d11e33224971209b7 (diff)
downloadhugo-minimalist-theme-e143b76386ff84d8d7b51c465043aeadfcae97bf.tar.gz
hugo-minimalist-theme-e143b76386ff84d8d7b51c465043aeadfcae97bf.tar.bz2
hugo-minimalist-theme-e143b76386ff84d8d7b51c465043aeadfcae97bf.zip
Appropriately set up taxonomies pages
Diffstat (limited to 'layouts/_default/terms.html')
-rw-r--r--layouts/_default/terms.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
new file mode 100644
index 0000000..37bdb87
--- /dev/null
+++ b/layouts/_default/terms.html
@@ -0,0 +1,19 @@
+{{ define "main" }}
+<div id="content" class="bg-near-white pa2">
+ <section class="mw7 center">
+ {{ range .Data.Terms.ByCount }}
+ <h4 class="f4">
+ <a href="{{ .Name }}" class="dark-gray underline-hover">
+ {{ .Name }} ({{ .Pages | len }})
+ </a>
+ </h4>
+
+ <ul class="bb b--black-50 pb2">
+ {{ range .Pages.ByDate.Reverse }}
+ <li class="black-50"><a href="{{ .Permalink }}" class="f4 dark-gray underline-hover">{{.Title}}</a> - {{ .Date.Format "Jan 2, 2006" }}</li>
+ {{ end}}
+ </ul>
+ {{ end }}
+ </section>
+</div>
+{{ end }}