summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleafee98 <leafee98@hotmail.com>2022-05-18 13:45:20 +0800
committerleafee98 <leafee98@hotmail.com>2022-05-18 13:45:20 +0800
commitc078c22ea39529ff8908ede08c13b17da22da545 (patch)
tree8383ede616d753b2ad136d185b5ff0f168027c93
parent4c7fe1a56be94a28001a5f22cdfbed9d8b975f1a (diff)
adjust template of taxonomy and term
-rw-r--r--layouts/_default/taxonomy.html (renamed from layouts/_default/terms.html)0
-rw-r--r--layouts/_default/term.html33
2 files changed, 33 insertions, 0 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/taxonomy.html
index 8259d7c..8259d7c 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/taxonomy.html
diff --git a/layouts/_default/term.html b/layouts/_default/term.html
new file mode 100644
index 0000000..393c3c1
--- /dev/null
+++ b/layouts/_default/term.html
@@ -0,0 +1,33 @@
+{{ define "main" }}
+
+<section id="archive">
+ {{ range .Data.Pages.GroupByDate "2006" }}
+ <div class="group">
+ <h3 class="key">
+ {{ .Key }}
+ </h3>
+
+ {{ range .Pages }}
+ <div class="value">
+ <time class="date" datetime="{{ .PublishDate }}">{{ .PublishDate.Format "01/02" }}</time>
+
+ <div class="title">
+
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+
+ {{ with .Params.tags }}
+ {{ range . }}
+ <a class="tags" href="{{ "/tags/" | relURL }}{{ . | urlize }}">{{ . }}</a>
+ {{ end }}
+ {{ end }}
+
+ </div>
+ </div>
+ {{ end }}
+
+ </div>
+ {{ end }}
+
+</section>
+
+{{ end }}