1
0
Fork 0

还原首页样式

This commit is contained in:
indes 2018-04-20 16:22:59 +08:00
parent 39cd560780
commit 906ab447f7
2 changed files with 7 additions and 2 deletions

View file

@ -16,7 +16,12 @@
{{ range $index, $page := $paginator.Pages }} {{ range $index, $page := $paginator.Pages }}
{{ if and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) }}
{{ .Scratch.Set "postClass" "first-entry" }}
{{ .Scratch.Set "firstEmoji" "<span class=\"welcome-emoji\">📌</span>" }}
{{ else }}
{{ .Scratch.Set "postClass" "post-entry" }} {{ .Scratch.Set "postClass" "post-entry" }}
{{ end }}
<article class="post {{ .Scratch.Get `postClass` }}"> <article class="post {{ .Scratch.Get `postClass` }}">
<header class="post-header"> <header class="post-header">

View file

@ -168,8 +168,8 @@ pre, code {
/* Main /* Main
======================================================================= */ ======================================================================= */
.list { .list {
/* background: #fafafa; */ background: #fafafa;
background: #fff; /* background: #fff; */
} }
/* Main /* Main
------------------------------ */ ------------------------------ */