From b58967a7298a8d95052bd6e983b23579195466b4 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 4 Jan 2022 13:52:37 -0500 Subject: [PATCH] Apply better style for taxonomy terms - Grouped terms like a cloud instead of scattering each term on its own line - Used a leading icon to make different taxonomy kinds distinguishable - Also showed the page count matching each term as superscript --- layouts/_default/terms.html | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 678efdde..cec87c61 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -1,4 +1,9 @@ {{ define "main" }} + +{{ $kind := .Data.Plural }} +{{ $terms := .Data.Terms.ByCount }} + +

{{ .Title }}

{{ with .Content }} @@ -7,11 +12,23 @@

{{ .Title }}

{{ end }}
-
- {{ range .Pages }} -

- {{ .LinkTitle }} -

- {{ end }} + + -{{ end }} \ No newline at end of file +{{ end }} +