{% set hero_image = post.frontmatter.extra.image | default(value="") %} {% if hero_image %} {%- if not (hero_image is starting_with("http")) and not (hero_image is starting_with("//")) -%} {%- set hero_image = site.config.base_url ~ hero_image -%} {%- endif -%}
{{ post.frontmatter.extra.image_alt | default(value=post.title) }} {% if post.frontmatter.extra.image_caption %}
{{ post.frontmatter.extra.image_caption }}
{% endif %}
{% endif %}