还原首页样式
This commit is contained in:
parent
39cd560780
commit
906ab447f7
2 changed files with 7 additions and 2 deletions
|
@ -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">
|
||||||
|
|
|
@ -168,8 +168,8 @@ pre, code {
|
||||||
/* Main
|
/* Main
|
||||||
======================================================================= */
|
======================================================================= */
|
||||||
.list {
|
.list {
|
||||||
/* background: #fafafa; */
|
background: #fafafa;
|
||||||
background: #fff;
|
/* background: #fff; */
|
||||||
}
|
}
|
||||||
/* Main
|
/* Main
|
||||||
------------------------------ */
|
------------------------------ */
|
||||||
|
|
Loading…
Reference in a new issue