From cfd4cdb731750786f787b7aaea6a9f411caa5af2 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Fri, 11 Sep 2020 16:01:01 +0200 Subject: feat(helper/image): new return format --- layouts/partials/head/opengraph.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'layouts/partials/head/opengraph.html') diff --git a/layouts/partials/head/opengraph.html b/layouts/partials/head/opengraph.html index 654c55c..26c987a 100644 --- a/layouts/partials/head/opengraph.html +++ b/layouts/partials/head/opengraph.html @@ -42,13 +42,9 @@ {{ $image := partial "helper/image" . }} {{- if $image.exists -}} - {{ $imagePermalink := $image.src }} - {{ if $image.local }} - {{ $imagePermalink = absURL $image.src.RelPermalink }} - {{ end }} - - + + {{- else if .Site.Params.opengraph.defaultImage -}} {{ $image := resources.Get .Site.Params.opengraph.defaultImage }} -- cgit v1.2.3