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

fix: resume the preview image SEO tag (#529)

Fix #529
This commit is contained in:
Cotes Chung
2022-03-16 19:43:23 +08:00
parent a60a4562bf
commit b8d1bcd3de
2 changed files with 26 additions and 3 deletions

View File

@@ -11,11 +11,11 @@ tail_includes:
{% include lang.html %}
{% if page.image.src %}
{% if page.image.path %}
{% capture bg %}
{% unless page.image.no_bg %}{{ 'bg' }}{% endunless %}
{% endcapture %}
<img src="{{ page.image.src }}" class="preview-img {{ bg | strip }}"
<img src="{{ page.image.path }}" class="preview-img {{ bg | strip }}"
alt="{{ page.image.alt | default: "Preview Image" }}"
{% if page.image.width %}