From 381295acf54717d5912da3ab6957b72d8cf7087e Mon Sep 17 00:00:00 2001 From: Yuanfei He Date: Fri, 27 Mar 2020 21:52:26 +0800 Subject: update home style --- layouts/index.html | 37 +++++++++++++++++++------------------ static/css/style.css | 21 +++++++++++++++------ 2 files changed, 34 insertions(+), 24 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 90652f3..dfd3ae0 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,9 +7,7 @@
- -
@@ -27,39 +25,42 @@
 Posts
-
-
+
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "post") }} + {{ range $paginator.Pages }} -
{{ $url :=.Permalink }} -{{ with .Param "header_images" }} -
+
+ {{ with .Param "header_images" }} + +
+ +
+ {{ else }} +
{{ end }} - -
-

{{ .Title }}

+ +

{{ .Title }}

{{.Date.Format "Jan 02, 2006"}}

Word Count: {{ .WordCount }}   | Reading Time: {{ .ReadingTime }} Minute  

{{ .Summary | markdownify }}....

{{ partial "post/tag/list" . }} -
- -
+ +
+
{{ end }} -
+ {{ template "_internal/pagination.html" . }} -
-
+
+ {{ end }} diff --git a/static/css/style.css b/static/css/style.css index 6ff171c..59eb338 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -369,13 +369,22 @@ figure.floatleft { float: left !important; } -.media { - padding: 0px 0px 0px 0px; +#home_post .col-md-3{ + padding-left:0px; + text-align:center; + padding-right:0px; +} +#home_post { + padding: 0px 0px 0px 0px; border: 1px solid #e8e8e8; + margin: 10px; + display: block; +} +#home_post p{ + line-height: 22px; + color: #888; } -.media-body { - padding-top: 20px; - padding-left: 20px; - padding-right: 10px; +#home_post span{ + font-size: 12px; } -- cgit v1.2.3