From 5a8024a827b6dbb103712865261c9a5ebc2908f9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 19 Apr 2022 19:29:38 +0900 Subject: add themes/mypaper, modified version of paper theme --- themes/mypaper/layouts/_default/list.html | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 themes/mypaper/layouts/_default/list.html (limited to 'themes/mypaper/layouts/_default/list.html') diff --git a/themes/mypaper/layouts/_default/list.html b/themes/mypaper/layouts/_default/list.html new file mode 100644 index 0000000..30acea5 --- /dev/null +++ b/themes/mypaper/layouts/_default/list.html @@ -0,0 +1,45 @@ +{{- partial "header.html" . }} + +{{- $scope := .Site }} +{{- if .Title }} +{{ $scope = . }} +{{ end }} + +{{- $paginator := .Paginate (where $scope.RegularPages ".Params.type" "!=" "page") }} + +{{- range $index, $page := $paginator.Pages }} + +{{- $class := "post-entry" }} +{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0)) }} +{{- $class = "first-entry" }} +{{- else if .Data.Term }} +{{- $class = "post-entry tag-entry" }} +{{- end }} +
+
+

{{ .Title }}

+
+
+

{{ .Summary | plainify | htmlUnescape }}...

+
+
+ +
+ +
+{{- end }} + +{{- if gt $paginator.TotalPages 1 }} + +{{- end }} + +{{- partial "footer.html" . }} -- cgit v1.2.3-70-g09d2