add conditional for hero image

This commit is contained in:
2026-05-13 10:54:22 -07:00
parent 5348f8fb6b
commit 3955025759
+3 -1
View File
@@ -4,6 +4,8 @@ layout: base.njk
<h1>{{ title }}</h1>
<img src="{{ data.hero.src }}" alt="{{ data.hero.alt }}">
{% if data.hero %}
<img src="{{ data.hero.src }}" alt="{{ data.hero.alt }}">
{% endif %}
{{ content | safe }}