diff --git a/modules/theme/views/hero-widget.html b/modules/theme/views/hero-widget.html index ae39b42..8349094 100644 --- a/modules/theme/views/hero-widget.html +++ b/modules/theme/views/hero-widget.html @@ -34,18 +34,20 @@
{# applies image crop and focal point if exist #} - {{ attachment._alt }} + {% if attachment %} + {{ attachment._alt }} + {% endif %} {# Content container #}
@@ -109,20 +111,21 @@ {%- set h2Mt = ' prose-headings:mt-4' if widget.caption else '' -%}
- - {{ attachment._alt }} + {% if attachment %} + {{ attachment._alt }} + {% endif %} {# Content container #}