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 -}} - +