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:
-rw-r--r--assets/sass/_base.sass5
-rw-r--r--layouts/partials/home/projects.html2
2 files changed, 6 insertions, 1 deletions
diff --git a/assets/sass/_base.sass b/assets/sass/_base.sass
index 6e36bc4..689cd05 100644
--- a/assets/sass/_base.sass
+++ b/assets/sass/_base.sass
@@ -74,6 +74,11 @@ pre
.thumbnail
border: none
+.card-thumbnail
+ width: 100%
+ height: 100%
+ object-fit: cover
+
.bold-title
font-size: 6rem
line-height: 1.2
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>