From e143b76386ff84d8d7b51c465043aeadfcae97bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Sun, 15 Jul 2018 23:47:14 +0200 Subject: Appropriately set up taxonomies pages --- layouts/_default/list.html | 20 ++++---------------- layouts/_default/terms.html | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 16 deletions(-) create mode 100644 layouts/_default/terms.html diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 7c9593d..dd42aa7 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,20 +1,8 @@ {{ define "main" }} -
- + {{ partial "pagination.html" . }}
{{ end }} 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" }} +
+
+ {{ range .Data.Terms.ByCount }} +

+ + {{ .Name }} ({{ .Pages | len }}) + +

+ +
    + {{ range .Pages.ByDate.Reverse }} +
  • {{.Title}} - {{ .Date.Format "Jan 2, 2006" }}
  • + {{ end}} +
+ {{ end }} +
+
+{{ end }} -- cgit v1.2.3