2016-04-14 20:45:48 +02:00
|
|
|
{% include base_path %}
|
|
|
|
|
2016-03-23 21:35:01 +01:00
|
|
|
{% if page.header.image contains "http" %}
|
|
|
|
{% capture img_path %}{{ page.header.image }}{% endcapture %}
|
|
|
|
{% else %}
|
|
|
|
{% capture img_path %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endcapture %}
|
|
|
|
{% endif %}
|
|
|
|
|
2016-04-14 16:46:33 +02:00
|
|
|
{% if page.header.cta_url contains "http" %}
|
|
|
|
{% capture cta_path %}{{ page.header.cta_url }}{% endcapture %}
|
|
|
|
{% else %}
|
|
|
|
{% capture cta_path %}{{ page.header.cta_url | prepend: base_path }}{% endcapture %}
|
|
|
|
{% endif %}
|
|
|
|
|
2016-03-24 02:50:22 +01:00
|
|
|
{% if page.header.overlay_image contains "http" %}
|
|
|
|
{% capture overlay_img_path %}{{ page.header.overlay_image }}{% endcapture %}
|
|
|
|
{% elsif page.header.overlay_image %}
|
|
|
|
{% capture overlay_img_path %}{{ page.header.overlay_image | prepend: "/images/" | prepend: base_path }}{% endcapture %}
|
2016-03-23 21:35:01 +01:00
|
|
|
{% endif %}
|
|
|
|
|
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-03-24 02:59:58 +01:00
|
|
|
style="{% if page.header.overlay_color %}background-color: {{ page.header.overlay_color | default: 'transparent' }};{% endif %} {% if overlay_img_path %}background-image: 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">
|
2016-03-24 02:50:22 +01:00
|
|
|
<h1 class="page__title" itemprop="headline">
|
|
|
|
{% if paginator %}
|
|
|
|
{{ site.title }}{% unless paginator.page == 1 %} {{ site.data.ui-text[site.locale].page }} {{ paginator.page }}{% endunless %}
|
|
|
|
{% 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>
|
2016-03-24 20:28:29 +01:00
|
|
|
{% if page.excerpt %}
|
|
|
|
<p class="page__lead">{{ page.excerpt | markdownify | remove: "<p>" | remove: "</p>" }}</p>
|
|
|
|
{% endif %}
|
|
|
|
{% if site.read_time and page.read_time %}
|
|
|
|
<p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i> {% include read-time.html %}</p>
|
|
|
|
{% endif %}
|
|
|
|
{% if page.header.cta_url %}
|
2016-04-14 16:46:33 +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 }}</a></p>
|
2016-03-24 20:28:29 +01:00
|
|
|
{% endif %}
|
2016-03-23 21:35:01 +01:00
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<img src="{{ img_path }}" alt="{{ page.title }}" 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 %}
|
|
|
|
</div>
|