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

github.com/budparr/gohugo-theme-ananke.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTroy Lindsay <tlindsay42@users.noreply.github.com>2022-01-10 23:24:14 +0300
committerGitHub <noreply@github.com>2022-01-10 23:24:14 +0300
commit3789b8edae1b46e5f91031037f4f9d33972377d3 (patch)
treef589e88f684cbbc8c8b91e34758466df48583ac9
parentfc9b2352db08440cd9c6fc54d3ebcb4d2f5acb15 (diff)
Standardize featured_image logic (#473) (#474)
-rwxr-xr-xlayouts/partials/site-header.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html
index 10a682f..aad8749 100755
--- a/layouts/partials/site-header.html
+++ b/layouts/partials/site-header.html
@@ -1,4 +1,4 @@
-{{ $featured_image := .Param "featured_image"}}
+{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
{{ if $featured_image }}
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
{{ $featured_image := (trim $featured_image "/") | absURL }}