From fe3849c9632b2a42f20c3fc35d4175e82e078c9e Mon Sep 17 00:00:00 2001 From: indes Date: Thu, 19 Apr 2018 22:03:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E9=A6=96=E9=A1=B5=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E7=AF=87=E6=96=87=E7=AB=A0=E7=89=B9=E6=AE=8A=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/_default/list.html | 9 ++++----- layouts/partials/header.html | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f3f5497..b45bf59 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -9,13 +9,12 @@ {{ 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`) }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 6781ddb..199b03f 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -23,7 +23,7 @@ {{ end -}} - +