1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

fix: og:image URL is incorrect (#1468)

Introduced by #1463
This commit is contained in:
Cotes Chung
2024-01-11 02:11:25 +08:00
committed by GitHub
parent 3589a6ee53
commit b2d1cb68db
2 changed files with 14 additions and 6 deletions

View File

@@ -26,7 +26,7 @@
{%- capture old_url -%}{{ src | absolute_url }}{%- endcapture -%}
{%- capture new_url -%}{{ img_url }}{%- endcapture -%}
{% assign seo_tags = seo_tags | replace: old, new %}
{% assign seo_tags = seo_tags | replace: old_url, new_url %}
{% endunless %}
{% elsif site.social_preview_image %}