diff --git a/README.md b/README.md index 321214e..6f984c8 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ summaryLength = 70 # number of words for article summaries showRss = true # show the link for the RSS feed; default true imageInArticlePreview = false # show images in article preview; default false + fitImageInArticlePreview = false # make article preview images fit the article preview instead of getting cropped articleSummary = true # show a summary in article preview; default true navtype = "standard" # changes the style of the pagination, available styles are: "standard", "circles" diff --git a/assets/scss/style.scss b/assets/scss/style.scss index d50dfd9..076ee16 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -262,7 +262,12 @@ h1, h2, h3, h4, h5, h6 { img { height: 250px; min-width: 100%; - object-fit: cover; + object-fit: + {{ if .Site.Params.FitImageInArticlePreview }} + contain + {{ else }} + cover + {{ end }}; } }