aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-09-07 03:58:40 +0200
committerOscar Najera <hi@oscarnajera.com>2023-09-07 03:58:40 +0200
commit750727091bdc7723c5e780bb9872c9b538314c3a (patch)
tree23c4592c38d1bf5b5a05e884a2e5dda6d178ef48 /layouts/_default/single.html
parent5e20b8d99cd4591cc9d066370139d210d673864c (diff)
downloadhugo-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/_default/single.html')
-rw-r--r--layouts/_default/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 6538e4f..77b7f97 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -8,7 +8,7 @@
<h3 class="f3 baskerville mv3">{{ . }}</h3>
{{end}}
- {{ with resources.Get (index .Params.images 0) | default (resources.Get .Params.image) }}
+ {{ with resources.Get (index .Params.images 0) }}
{{ $image := .Fill (default "400x400" $.Params.image_size) }}
<div class="relative">
<img src="{{ $image.RelPermalink }}" class="db center" alt= "{{ .Title }}">