From e15e39155de54dc1624bab80eefbccd6a783cd0c Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Fri, 15 Jul 2022 21:26:31 +0000
Subject: [PATCH] fix: give precedence to date created over last modified if defined (#101)

---
 layouts/_default/taxonomy.html |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
index 8f86b64..7e401ae 100644
--- a/layouts/_default/taxonomy.html
+++ b/layouts/_default/taxonomy.html
@@ -9,14 +9,17 @@
     {{partial "header.html" .}}
     <article>
         <h1>All {{.Title}}</h1>
+        {{with .Params.description}}
+            <p>{{.}}</p>
+        {{end}}
         <div class="tags">
             {{ range .Site.Taxonomies.tags.ByCount }}
             <div class="meta">
-                <h1><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a></h1>
-                <p><b>{{ .Count }}</b> notes with this tag {{if gt .Count 2}}(showing first 2 results){{end}}</p>
+                <h1><a href="{{ .Page.Permalink }}">{{ .Page.Title | humanize }}</a></h1>
+                <p><b>{{ .Count }}</b> notes with this tag {{if gt .Count 10}}(showing first 10 results){{end}}</p>
             </div>
             {{ with ($.Site.GetPage (printf "/tags/%s" .Page.Title)) }}
-            {{partial "page-list.html" (first 2 .Pages.ByLastmod.Reverse)}}
+            {{partial "page-list.html" (first 10 .Pages.ByLastmod.Reverse)}}
             {{ end }}
             {{ end }}
         </div>

--
Gitblit v1.10.0