From 62707ac8df4ed3845a196d14f4552e39d1532e21 Mon Sep 17 00:00:00 2001
From: Jack Collier <93914995+jhcoll@users.noreply.github.com>
Date: Fri, 13 Oct 2023 13:29:20 +0100
Subject: [PATCH] Remove extra slashes from image meta url (#77)
- Update `default.html` to remove excess slashes
---
_layouts/default.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/_layouts/default.html b/_layouts/default.html
index fce82fc6eb..b0bf014e8a 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -26,7 +26,7 @@
{% if page.image %}
- {% assign thumbnailImage = site.canonical.url | append: '/' | append: page.image %}
+ {% assign thumbnailImage = page.image | prepend: '/' | replace : '//', '/' | prepend: site.canonical.url %}
{% else %}
{% assign thumbnailImage = site.canonical.url | append: '/assets/blog.png' %}
{% endif %}