openeuropa / oe_bootstrap_theme

Bootstrap-based theme
European Union Public License 1.2
6 stars 13 forks source link

Only display heading for title in the pattern featured media if it is not empty #288

Closed dxvargas closed 1 year ago

dxvargas commented 1 year ago

The pattern Featured media always displays the title headings, even if the title is empty (see here)

It should only display the heading if the title is not empty. Like this:

{% if title %}
  <h2 class="mb-4">{{ title }}</h2>
{% endif %}

This is even more important since the title is not required by default (see here).

Also it would be nice to have the "title_tag" parameter available.