generated from inherentlee/11ty
add conditional for hero image
This commit is contained in:
@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user