From 120ebe58be756e2913a3c60de924c375ed950ffe Mon Sep 17 00:00:00 2001
From: Regis Philibert <login@regisphilibert.com>
Date: Thu, 02 Dec 2021 20:02:34 +0000
Subject: [PATCH] Merge branch 'master' into 422-improve-socials

---
 layouts/partials/func/GetFeaturedImage.html |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/layouts/partials/func/GetFeaturedImage.html b/layouts/partials/func/GetFeaturedImage.html
index c00b086..a6219c7 100644
--- a/layouts/partials/func/GetFeaturedImage.html
+++ b/layouts/partials/func/GetFeaturedImage.html
@@ -1,8 +1,8 @@
 {{/* 
     GetFeaturedImage
 
-    This partial gets the url for featured image for a given page. 
-    
+    This partial gets the url for featured image for a given page.
+
     If a featured_image was set in the page's front matter, then that will be used.
 
     If not set, this will search page resources to find an image that contains the word
@@ -11,7 +11,7 @@
     If no featured_image was set, and there's no "cover" image in page resources, then
     this partial returns an empty string (which evaluates to false).
 
-    @return Permalink to featured image, or an empty string if not found.
+    @return RelPermalink to featured image, or an empty string if not found.
 
 */}}
 
@@ -26,10 +26,10 @@
 {{ else }}
     {{ $img := (.Resources.ByType "image").GetMatch "*cover*" }}
     {{ with $img }}
-        {{ $linkToCover = .Permalink }}
+        {{ $linkToCover = .RelPermalink }}
     {{ end }}
 {{ end }}
 
 {{/* return either a permalink, or an empty string. Note that partials can only have a single
 return statement, so this needs to be at the end of the partial (and not in the if block) */}}
-{{ return $linkToCover }}
\ No newline at end of file
+{{ return $linkToCover }}

--
Gitblit v1.10.0