2019-09-11 06:19:34 +02:00
|
|
|
{%- include functions.html func='log' level='debug' msg='Get banner_html value' -%}
|
|
|
|
{% assign name = 'banner_html' %}
|
|
|
|
{%- include functions.html func='get_value' -%}
|
|
|
|
{% assign banner_html = return %}
|
|
|
|
|
|
|
|
{%- include functions.html func='log' level='debug' msg='Get banner value' -%}
|
|
|
|
{% assign name = 'banner' %}
|
|
|
|
{%- include functions.html func='get_value' -%}
|
|
|
|
{% assign banner = return %}
|
|
|
|
|
|
|
|
{%- include functions.html func='log' level='debug' msg='Get heading value' -%}
|
|
|
|
{% assign name = 'heading' %}
|
|
|
|
{%- include functions.html func='get_value' -%}
|
|
|
|
{% assign heading = return %}
|
|
|
|
|
|
|
|
{%- include functions.html func='log' level='debug' msg='Get subheading value' -%}
|
|
|
|
{% assign name = 'subheading' %}
|
|
|
|
{%- include functions.html func='get_value' -%}
|
|
|
|
{% assign subheading = return %}
|
|
|
|
|
|
|
|
{% if banner %}
|
|
|
|
|
|
|
|
{% assign auto_banner = true %}
|
2019-09-19 08:14:23 +02:00
|
|
|
{% assign array = banner | split: '/' %}
|
2019-09-11 06:19:34 +02:00
|
|
|
{% assign protocol = array[0] %}
|
|
|
|
|
|
|
|
{% if array.size > 1 and (protocol == '' or protocol == 'http:' or protocol == 'https:') %}
|
|
|
|
{% assign auto_banner = false %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<section class="page-banner">
|
|
|
|
<div class="page-banner-img">
|
|
|
|
{%- if auto_banner == false -%}
|
|
|
|
<div style="background-image: url({{ banner }})"></div>
|
|
|
|
{%- endif -%}
|
|
|
|
</div>
|
|
|
|
<div class="wrapper">
|
|
|
|
<div class="page-banner-inner">
|
|
|
|
|
|
|
|
{%- if banner_html -%}
|
|
|
|
|
|
|
|
{%- assign banner_html = 'views/' | append: banner_html -%}
|
|
|
|
{%- include {{ banner_html }} -%}
|
|
|
|
|
|
|
|
{%- else -%}
|
|
|
|
|
|
|
|
<h1 class="page-banner-heading">
|
|
|
|
{{ heading | default: page.title | escape }}
|
|
|
|
</h1>
|
|
|
|
<h3 class="page-banner-subheading">
|
|
|
|
{{ subheading | default: page.subtitle | escape }}
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
{%- endif -%}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{%- if auto_banner -%}
|
2019-09-19 08:14:23 +02:00
|
|
|
|
2019-09-11 06:19:34 +02:00
|
|
|
{%- assign selector = ".page-banner-img" -%}
|
2019-09-19 08:14:23 +02:00
|
|
|
|
|
|
|
{%- if banner == "default" -%}
|
|
|
|
|
|
|
|
{%- assign heading = page.heading | default: page.title | escape -%}
|
|
|
|
{%- assign subheading = page.subheading | default: page.subtitle | escape -%}
|
|
|
|
{%- assign seed = page.date | append: heading | append: subheading -%}
|
|
|
|
|
|
|
|
{%- else -%}
|
|
|
|
|
|
|
|
{%- assign seed = 'theme-' | append: banner -%}
|
|
|
|
|
|
|
|
{%- endif -%}
|
|
|
|
|
2019-09-11 06:19:34 +02:00
|
|
|
{%- include extensions/trianglify.html -%}
|
2019-09-19 08:14:23 +02:00
|
|
|
|
2019-09-11 06:19:34 +02:00
|
|
|
{%- endif -%}
|
|
|
|
|
|
|
|
{%- endif -%}
|
|
|
|
|