2016-06-03 17:59:19 +02:00
|
|
|
{% if page.header.image contains "://" %}
|
2016-03-23 21:35:01 +01:00
|
|
|
{% capture img_path %}{{ page.header.image }}{% endcapture %}
|
|
|
|
{% else %}
|
2018-03-20 16:35:36 +01:00
|
|
|
{% capture img_path %}{{ page.header.image | relative_url }}{% endcapture %}
|
2016-03-23 21:35:01 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2016-06-03 17:59:19 +02:00
|
|
|
{% if page.header.cta_url contains "://" %}
|
2016-04-14 16:46:33 +02:00
|
|
|
{% capture cta_path %}{{ page.header.cta_url }}{% endcapture %}
|
|
|
|
{% else %}
|
2018-03-20 16:35:36 +01:00
|
|
|
{% capture cta_path %}{{ page.header.cta_url | relative_url }}{% endcapture %}
|
2016-04-14 16:46:33 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2016-06-03 17:59:19 +02:00
|
|
|
{% if page.header.overlay_image contains "://" %}
|
2016-03-24 02:50:22 +01:00
|
|
|
{% capture overlay_img_path %}{{ page.header.overlay_image }}{% endcapture %}
|
|
|
|
{% elsif page.header.overlay_image %}
|
2018-03-20 16:35:36 +01:00
|
|
|
{% capture overlay_img_path %}{{ page.header.overlay_image | relative_url }}{% endcapture %}
|
2016-03-23 21:35:01 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2016-05-02 13:59:31 +02:00
|
|
|
{% if page.header.overlay_filter contains "rgba" %}
|
|
|
|
{% capture overlay_filter %}{{ page.header.overlay_filter }}{% endcapture %}
|
|
|
|
{% elsif page.header.overlay_filter %}
|
|
|
|
{% capture overlay_filter %}rgba(0, 0, 0, {{ page.header.overlay_filter }}){% endcapture %}
|
|
|
|
{% endif %}
|
|
|
|
|
2017-08-04 18:20:08 +02:00
|
|
|
{% 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 %}
|
|
|
|
|
2016-03-24 02:50:22 +01:00
|
|
|
<div class="page__hero{% if page.header.overlay_color or page.header.overlay_image %}--overlay{% endif %}"
|
2016-05-02 14:25:26 +02:00
|
|
|
style="{% if page.header.overlay_color %}background-color: {{ page.header.overlay_color | default: 'transparent' }};{% endif %} {% if overlay_img_path %}background-image: {% if overlay_filter %}linear-gradient({{ overlay_filter }}, {{ overlay_filter }}), {% endif %}url('{{ overlay_img_path }}');{% endif %}"
|
2016-03-23 21:35:01 +01:00
|
|
|
>
|
2016-03-24 02:50:22 +01:00
|
|
|
{% if page.header.overlay_color or page.header.overlay_image %}
|
2016-03-23 21:35:01 +01:00
|
|
|
<div class="wrapper">
|
2018-05-08 16:40:42 +02:00
|
|
|
<h1 id="page-title" class="page__title" itemprop="headline">
|
2017-01-24 16:42:02 +01:00
|
|
|
{% if paginator and site.paginate_show_page_num %}
|
2016-07-29 18:16:53 +02:00
|
|
|
{{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}
|
2016-03-24 02:50:22 +01:00
|
|
|
{% else %}
|
2016-04-14 20:26:47 +02:00
|
|
|
{{ page.title | default: site.title | markdownify | remove: "<p>" | remove: "</p>" }}
|
2016-03-24 02:50:22 +01:00
|
|
|
{% endif %}
|
|
|
|
</h1>
|
2018-01-02 22:08:37 +01:00
|
|
|
{% if page.header.show_overlay_excerpt != false and page.excerpt %}
|
2016-03-24 20:28:29 +01:00
|
|
|
<p class="page__lead">{{ page.excerpt | markdownify | remove: "<p>" | remove: "</p>" }}</p>
|
|
|
|
{% endif %}
|
2018-07-24 16:43:54 +02:00
|
|
|
{% if page.read_time %}
|
2018-01-04 20:27:27 +01:00
|
|
|
<p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i> {% include read-time.html %}</p>
|
2016-03-24 20:28:29 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if page.header.cta_url %}
|
2016-07-29 18:16:53 +02:00
|
|
|
<p><a href="{{ cta_path }}" class="btn btn--light-outline btn--large">{{ page.header.cta_label | default: site.data.ui-text[site.locale].more_label | default: "Learn More" }}</a></p>
|
2016-03-24 20:28:29 +01:00
|
|
|
{% endif %}
|
2016-03-23 21:35:01 +01:00
|
|
|
</div>
|
|
|
|
{% else %}
|
2017-08-04 18:20:08 +02:00
|
|
|
<img src="{{ img_path }}" alt="{{ image_description }}" class="page__hero-image">
|
2016-03-24 02:59:58 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if page.header.caption %}
|
|
|
|
<span class="page__hero-caption">{{ page.header.caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
|
2016-03-23 17:56:23 +01:00
|
|
|
{% endif %}
|
2017-01-24 16:42:02 +01:00
|
|
|
</div>
|