From 0d030883a8a9b749b3d2dc5580c2736f750c0b9d Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Wed, 29 May 2024 16:23:58 -0700 Subject: [PATCH] fix: image url --- src/_includes/base.liquid | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_includes/base.liquid b/src/_includes/base.liquid index bb12bfae..7138350c 100644 --- a/src/_includes/base.liquid +++ b/src/_includes/base.liquid @@ -43,7 +43,8 @@ {%- assign ogImage = meta.meta_data.opengraph_default -%} {%- case schema -%} {%- when 'blog' -%} - {%- assign ogImage = meta.url | append: '/assets/img/ogi/' | append: title | slugifyString | append: '-preview.png' -%} + {%- assign ogBlogSlug = title | slugifyString -%} + {%- assign ogImage = meta.url | append: '/assets/img/ogi/' | append: ogBlogSlug | append: '-preview.png' -%} {%- when 'music' -%} {%- assign ogImage = music.recent.artists[0].image -%} {%- when 'music-index' -%}