aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-10-19 15:47:36 +0200
committerOscar Najera <hi@oscarnajera.com>2023-10-19 15:47:36 +0200
commita0891844ac0037d9bfd7bc63a5d4d39e2f421001 (patch)
tree0e7916a88fa4b404a2ad3af109124e87ac68106b
parent2a1b0bf3e757812f230dc769426b804389c797e0 (diff)
downloadhugo-minimalist-theme-a0891844ac0037d9bfd7bc63a5d4d39e2f421001.tar.gz
hugo-minimalist-theme-a0891844ac0037d9bfd7bc63a5d4d39e2f421001.tar.bz2
hugo-minimalist-theme-a0891844ac0037d9bfd7bc63a5d4d39e2f421001.zip
experiment post with fill image resize
-rw-r--r--layouts/partials/post.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/post.html b/layouts/partials/post.html
index 1c42c00..b84ba92 100644
--- a/layouts/partials/post.html
+++ b/layouts/partials/post.html
@@ -12,7 +12,7 @@
<div class="fl-ns mb4 mb0-ns pr3-ns">
<img
src="{{ if ne .MediaType.SubType "svg" }}
- {{ $image := .Resize (default "320x" .Params.thumbnail_size) }}
+ {{ $image := .Fill (default "320x210" $.Params.thumbnail_size) }}
{{ $image.RelPermalink }}
{{ else }}
{{ $image.RelPermalink }}