Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormijorus <39067225+mijorus@users.noreply.github.com>2020-06-24 16:31:45 +0300
committerGitHub <noreply@github.com>2020-06-24 16:31:45 +0300
commitea30afa39abc90acb700536b7f663a671ac564a1 (patch)
tree8dbb1849636b94fa7ea7565b000c229beb77c949 /layouts
parentc4994cc895cd5b0c7432fd112cbb65092dc72362 (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.html2
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>