fix: image url

This commit is contained in:
Cory Dransfeldt 2024-05-29 16:23:58 -07:00
parent e0f5351929
commit 0d030883a8

View file

@ -43,7 +43,8 @@
{%- assign ogImage = meta.meta_data.opengraph_default -%} {%- assign ogImage = meta.meta_data.opengraph_default -%}
{%- case schema -%} {%- case schema -%}
{%- when 'blog' -%} {%- 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' -%} {%- when 'music' -%}
{%- assign ogImage = music.recent.artists[0].image -%} {%- assign ogImage = music.recent.artists[0].image -%}
{%- when 'music-index' -%} {%- when 'music-index' -%}