From b89cd62afb84dd00e7eebfc7d7c13e4b8dcd59b7 Mon Sep 17 00:00:00 2001
From: Regis Philibert <login@regisphilibert.com>
Date: Thu, 09 Jun 2022 14:05:20 +0000
Subject: [PATCH] Only apply the absURL on images served through satic directory
---
layouts/partials/page-header.html | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/layouts/partials/page-header.html b/layouts/partials/page-header.html
index 9e46054..8fbaea3 100644
--- a/layouts/partials/page-header.html
+++ b/layouts/partials/page-header.html
@@ -1,7 +1,6 @@
{{ $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 }}
<header class="cover bg-top" style="background-image: url('{{ $featured_image }}');">
<div class="bg-black-60">
{{ partial "site-navigation.html" . }}
--
Gitblit v1.10.0