From 6315d0ab8f4a7ded53342d2f97d47305901bbdb8 Mon Sep 17 00:00:00 2001 From: Lee Date: Tue, 9 Jan 2018 00:28:39 +0800 Subject: Initial commit --- layouts/_default/list.html | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 layouts/_default/list.html (limited to 'layouts/_default/list.html') diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..f3f5497 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,44 @@ +{{ partial "header.html" . }} +{{ if not .IsHome }} +
+ {{ if eq .Data.Singular "tag" }}Tagged in +

{{ .Data.Term }}

+ {{ else }}

Posts

+ {{ end }} +
+{{ end }} +{{ $paginator := .Paginate (where .Pages ".Params.type" "!=" "page") (index .Site.Params "paginate" | default 10) }} +{{ if gt $paginator.TotalPages 0 }} +{{ range $index, $page := $paginator.Pages }} +{{ if and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) }} +{{ .Scratch.Set "postClass" "first-entry" }} +{{ .Scratch.Set "firstEmoji" "👉" }} +{{ else }} +{{ .Scratch.Set "postClass" "post-entry" }} +{{ end }} +
+
+ {{ safeHTML (.Scratch.Get `firstEmoji`) }} +

{{ .Title }}

+
+

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

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