Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dataCobra/hugo-vitae.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordataCobra <datacobra@thinkbot.de>2021-03-06 18:26:59 +0300
committerdataCobra <datacobra@thinkbot.de>2021-03-06 18:26:59 +0300
commit4916b5a2d17e155b5c5f96aa65cb4e714965b86c (patch)
treebfff5b22d5c93b39583c587d155fbd9d9afc3ab9 /layouts
parentb8d324ccc25c8791083b5f05728229aa2575d3e5 (diff)
Fix post image in favor of open graph protocol
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html4
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">