Skip to content

Commit 48cb698

Browse files
committed
refactor(frontmatter): edit image frontmatter processing to include post field
1 parent ee68395 commit 48cb698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h1 data-toc-skip>{{ page.title }}</h1>
3636
</span>
3737
{% endif %}
3838

39-
{% if page.image %}
39+
{% if page.image and page.image.post != false %}
4040
{% capture src %}src="{{ page.image.path | default: page.image }}"{% endcapture %}
4141
{% capture class %}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{% endcapture %}
4242
{% capture alt %}alt="{{ page.image.alt | xml_escape | default: "Preview Image" }}"{% endcapture %}

0 commit comments

Comments
 (0)