{{ .Title }}
@@ -21,12 +21,17 @@ {{ end }} {{ end }} + {{ if .Site.Params.imageInArticlePreview }} + {{ if .Params.Image }} + + {{ end }} + {{end}}-
diff --git a/README.md b/README.md index 9519e85..0c9b99c 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,8 @@ paginate = 5 # number of articles per page in the index favicon = "/images/myfavicon.png" showTags = true # show the Tags menu item; default true showRss = true # show the link for the RSS feed; default true + + imageInArticlePreview = false # show images in article preview; default false navtype = "standard" # changes the style of the pagination, available styles are: "standard", "circle" fontFamily = "JetBrains Mono" # changes the font, default "JetBrains Mono" diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 6f4c9c7..d76099d 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -257,8 +257,26 @@ h1, h2, h3, h4, h5, h6 { // only hide hr in cards if they are in the article list // cards in list are divs, cards as in full-blown articles use the article tag -div.card.discrete { - hr { display: none; } +.postlistitem.card.discrete { + hr { display: none; } +} + +.postlistitem.card { + img { + margin: 15px auto; + } +} + +@media only screen and (min-width: 500px) { + .postlistitem.card { + img { + max-width: 250px; + float: left; + margin-right: 15px; + margin-bottom: 15px; + } + overflow: auto; // clearfix + } } ul { diff --git a/layouts/index.html b/layouts/index.html index e00dc99..7386a8f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,7 +6,7 @@ {{/* pagination */}} {{ range (.Paginate $postsList).Pages }} -