From 906ab447f787b429970f372c487f31a87abfdecd Mon Sep 17 00:00:00 2001 From: indes Date: Fri, 20 Apr 2018 16:22:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9F=E9=A6=96=E9=A1=B5=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 | 5 +++++ static/css/style.css | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index bb011b3..f43fb89 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -16,7 +16,12 @@ {{ 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 }}
diff --git a/static/css/style.css b/static/css/style.css index 7e7a6dd..0b71e46 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -168,8 +168,8 @@ pre, code { /* Main ======================================================================= */ .list { - /* background: #fafafa; */ - background: #fff; + background: #fafafa; + /* background: #fff; */ } /* Main ------------------------------ */