added option to fit image in article preview
This commit is contained in:
parent
18a213cf31
commit
a260f04d1d
2 changed files with 7 additions and 1 deletions
|
|
@ -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 }};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue