diff --git a/_includes/page__hero.html b/_includes/page__hero.html index 97090d07..93e9155f 100644 --- a/_includes/page__hero.html +++ b/_includes/page__hero.html @@ -22,6 +22,14 @@ {% capture overlay_filter %}rgba(0, 0, 0, {{ page.header.overlay_filter }}){% endcapture %} {% endif %} +{% if page.header.image_description %} + {% assign image_description = page.header.image_description %} +{% else %} + {% assign image_description = page.title %} +{% endif %} + +{% assign image_description = image_description | markdownify | strip_html | strip_newlines | escape_once %} +
{% else %} - {% if page.header.image_description %} -" | remove: "
" }} diff --git a/docs/_includes/page__hero.html b/docs/_includes/page__hero.html index 24488932..93e9155f 100644 --- a/docs/_includes/page__hero.html +++ b/docs/_includes/page__hero.html @@ -22,6 +22,14 @@ {% capture overlay_filter %}rgba(0, 0, 0, {{ page.header.overlay_filter }}){% endcapture %} {% endif %} +{% if page.header.image_description %} + {% assign image_description = page.header.image_description %} +{% else %} + {% assign image_description = page.title %} +{% endif %} + +{% assign image_description = image_description | markdownify | strip_html | strip_newlines | escape_once %} + {% else %} -" | remove: "
" }}