diff options
author | dataCobra <datacobra@thinkbot.de> | 2021-03-06 18:26:59 +0300 |
---|---|---|
committer | dataCobra <datacobra@thinkbot.de> | 2021-03-06 18:26:59 +0300 |
commit | 4916b5a2d17e155b5c5f96aa65cb4e714965b86c (patch) | |
tree | bfff5b22d5c93b39583c587d155fbd9d9afc3ab9 /layouts | |
parent | b8d324ccc25c8791083b5f05728229aa2575d3e5 (diff) |
Fix post image in favor of open graph protocol
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 003dd4e..39e0095 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,8 +1,8 @@ {{- define "main" }} <div class="post"> -{{- if isset .Params "image" }} +{{- if isset .Params "images" }} <div class="post-image"> -<img src="{{ relURL .Params.image }}" {{ if isset .Params "imagetext" }}alt="{{ .Params.imagetext }}"{{ end }}> +<img src="{{ index .Params.images 0 | relURL }}" {{ if isset .Params "imagetext" }}alt="{{ .Params.imagetext }}"{{ end }}> </div> {{- end }} <div class="author"> |