Newer
Older
<section class="hero is-fullheight-with-navbar {% if background_img %}has-background{% endif %} {% if background_transparent %}is-transparent{% endif %}">
{% if background_img %}
{% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ background_img, width=800, height=600) -%}
<img class="hero-background" src="{{ image.url }}" alt="">
<div class="container has-text-centered">
<h1 class="title is-1 mb-5">
{% if page.extra.title.image -%}
<figure>
<img src="{{ get_url(path=page.extra.title.image) }}" alt="{{ title | default(value=page.title) | safe }}" />
</figure>
{% else -%}
{{ title | default(value=page.title) | safe }}
{% endif %}
</h1>
{% if body or page.description %}<p class="subtitle">{{ body | default(value=page.description) | safe }}</p>{% endif -%}
</div>