From 470ea40982f5036554819253c3ac6ed4a34193f4 Mon Sep 17 00:00:00 2001
From: Regis Philibert <login@regisphilibert.com>
Date: Fri, 10 Jun 2022 19:36:57 +0000
Subject: [PATCH] Only apply the absURL on images served through satic directory (#557)
---
layouts/_default/summary-with-image.html | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/layouts/_default/summary-with-image.html b/layouts/_default/summary-with-image.html
index 3c94240..0467891 100644
--- a/layouts/_default/summary-with-image.html
+++ b/layouts/_default/summary-with-image.html
@@ -4,7 +4,6 @@
<div class="flex flex-column flex-row-ns">
{{ 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 }}
<div class="{{ cond (eq $.Site.Language.LanguageDirection "rtl") "pl3-ns" "pr3-ns" }} mb4 mb0-ns w-100 w-40-ns">
<a href="{{.RelPermalink}}" class="db grow">
<img src="{{ $featured_image }}" class="img" alt="image from {{ .Title }}">
--
Gitblit v1.10.0