From ea560a0610991ce5af7fabef9e5ef456f374b8e4 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Wed, 15 Apr 2020 20:07:14 +0800 Subject: Add archives page --- layouts/archives/list.html | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 layouts/archives/list.html (limited to 'layouts/archives') diff --git a/layouts/archives/list.html b/layouts/archives/list.html new file mode 100644 index 0000000..3fcd2f7 --- /dev/null +++ b/layouts/archives/list.html @@ -0,0 +1,38 @@ +{{ define "main" }} +
+
+ +
+
+ 文章总数:{{ len (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }} +
+ + {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) 50 }} + {{ range $paginator.Pages }} +
+

+ {{ .Title }} +

+
+ {{ partial "post-meta.html" . }} +
+
+ {{ end }} + {{ if gt $paginator.TotalPages 1 }} + + {{ end }} +
+ + +
+ +
+
+
+
+
+{{ end }} \ No newline at end of file -- cgit v1.2.3