diff options
author | mijorus <39067225+mijorus@users.noreply.github.com> | 2020-06-24 16:31:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 16:31:45 +0300 |
commit | ea30afa39abc90acb700536b7f663a671ac564a1 (patch) | |
tree | 8dbb1849636b94fa7ea7565b000c229beb77c949 /layouts | |
parent | c4994cc895cd5b0c7432fd112cbb65092dc72362 (diff) |
allow images of any ratio to be set as thumbnails without stretching them (#216)
* allow images of any ratio to be set as thumbnails without streching them
* Update _base.sass
Co-authored-by: mijorus <lorenzo@mijorus.it>
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/home/projects.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/home/projects.html b/layouts/partials/home/projects.html index 0cf6d96..c62c40d 100644 --- a/layouts/partials/home/projects.html +++ b/layouts/partials/home/projects.html @@ -24,7 +24,7 @@ {{ with .Resources.ByType "image" }} {{ range first 1 (sort . "Params.weight") }} {{ $image := .Resize $width }} - <img src="{{ $image.Permalink }}" alt ="{{ $image.Name }}"> + <img class="card-thumbnail" src="{{ $image.Permalink }}" alt ="{{ $image.Name }}"> {{ end }} {{ end }} </a> |