diff --git a/assets/scss/style.scss b/assets/scss/style.scss index d76099d..9501f09 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -261,14 +261,14 @@ h1, h2, h3, h4, h5, h6 { hr { display: none; } } -.postlistitem.card { +.postlistitem.card div { img { margin: 15px auto; } } @media only screen and (min-width: 500px) { - .postlistitem.card { + .postlistitem.card > div { img { max-width: 250px; float: left; diff --git a/layouts/index.html b/layouts/index.html index 7386a8f..b1b84c0 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,10 +7,11 @@ {{/* pagination */}} {{ range (.Paginate $postsList).Pages }}
-

- {{ .Title }} -

-

+

+

+ {{ .Title }} +

+

{{ .Date.Format "2006-01-02" }} {{ if .Params.tags }} @@ -20,15 +21,16 @@ #{{ . }} {{ end }} {{ end }} -

- {{ if .Site.Params.imageInArticlePreview }} - {{ if .Params.Image }} - - {{ end }} - {{end}} -
- {{ .Summary }} - Continue reading  +

+ {{ if .Site.Params.imageInArticlePreview }} + {{ if .Params.Image }} + + {{ end }} + {{end}} +
+

{{ .Summary }}

+

Continue reading 

+