2016-03-18 12:33:17 +01:00
|
|
|
<!-- TODO this file has become a mess, refactor it -->
|
|
|
|
|
2020-04-24 01:18:23 +02:00
|
|
|
{% assign date_format = site.date_format | default: "%B %-d, %Y" %}
|
|
|
|
|
2016-03-18 12:33:17 +01:00
|
|
|
{% if page.bigimg or page.title %}
|
|
|
|
|
|
|
|
{% if page.bigimg %}
|
|
|
|
<div id="header-big-imgs" data-num-img={% if page.bigimg.first %}{{ page.bigimg.size }}{% else %}1{% endif %}
|
|
|
|
{% for bigimg in page.bigimg %}
|
|
|
|
{% assign imgnum = forloop.index %}
|
|
|
|
{% for imginfo in bigimg %}
|
|
|
|
{% if imginfo[0] %}
|
2019-06-08 07:34:33 +02:00
|
|
|
data-img-src-{{ imgnum }}="{{ imginfo[0] | relative_url }}"
|
2016-03-18 12:33:17 +01:00
|
|
|
data-img-desc-{{ imgnum }}="{{ imginfo[1] }}"
|
|
|
|
{% else %}
|
2019-06-08 07:34:33 +02:00
|
|
|
data-img-src-{{ imgnum }}="{{ imginfo | relative_url }}"
|
2016-03-18 12:33:17 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
></div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<header class="header-section {% if page.bigimg %}has-img{% endif %}">
|
|
|
|
{% if page.bigimg %}
|
|
|
|
<div class="big-img intro-header">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
|
|
|
<div class="{{ include.type }}-heading">
|
|
|
|
<h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
|
|
|
|
{% if page.subtitle %}
|
|
|
|
{% if include.type == "page" %}
|
|
|
|
<hr class="small">
|
|
|
|
<span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
|
|
|
|
{% else %}
|
|
|
|
<h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if include.type == "post" %}
|
2020-04-24 01:18:23 +02:00
|
|
|
<span class="post-meta">Posted on {{ page.date | date: date_format }}</span>
|
2016-03-18 12:33:17 +01:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span class='img-desc'></span>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<div class="intro-header no-img">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
|
|
|
<div class="{{ include.type }}-heading">
|
|
|
|
<h1>{% if page.title %}{{ page.title }}{% else %}<br/>{% endif %}</h1>
|
|
|
|
{% if page.subtitle %}
|
|
|
|
{% if include.type == "page" %}
|
|
|
|
<hr class="small">
|
|
|
|
<span class="{{ include.type }}-subheading">{{ page.subtitle }}</span>
|
|
|
|
{% else %}
|
|
|
|
<h2 class="{{ include.type }}-subheading">{{ page.subtitle }}</h2>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if include.type == "post" %}
|
2020-04-24 01:18:23 +02:00
|
|
|
<span class="post-meta">Posted on {{ page.date | date: date_format }}</span>
|
2016-03-18 12:33:17 +01:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
<div class="intro-header"></div>
|
2018-12-25 23:27:22 +01:00
|
|
|
{% endif %}
|