diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-09-07 03:58:40 +0200 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2023-09-07 03:58:40 +0200 |
commit | 750727091bdc7723c5e780bb9872c9b538314c3a (patch) | |
tree | 23c4592c38d1bf5b5a05e884a2e5dda6d178ef48 /layouts/partials/post.html | |
parent | 5e20b8d99cd4591cc9d066370139d210d673864c (diff) | |
download | hugo-minimalist-theme-750727091bdc7723c5e780bb9872c9b538314c3a.tar.gz hugo-minimalist-theme-750727091bdc7723c5e780bb9872c9b538314c3a.tar.bz2 hugo-minimalist-theme-750727091bdc7723c5e780bb9872c9b538314c3a.zip |
Structured data instead of internal templates of social media
Diffstat (limited to 'layouts/partials/post.html')
-rw-r--r-- | layouts/partials/post.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 53aa735..c1e66d5 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -2,7 +2,7 @@ <a class="db no-underline dim" href= "{{ .RelPermalink }}"> <h3 class="f3 baskerville mt0 lh-title near-black">{{.Title }}</h3> <div class="cf"> - {{ with resources.Get (index .Params.images 0) | default (resources.Get .Params.image) }} + {{ with resources.Get (index .Params.images 0) }} {{ $image := .Resize (default "320x" .Params.thumbnail_size) }} <div class="fl-ns mb4 mb0-ns pr3-ns"> <img src="{{ $image.RelPermalink }}" class="db center"> |