2016-02-22 22:46:49 +01:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
---
|
|
|
|
|
2016-08-25 18:15:23 +02:00
|
|
|
{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
|
2016-03-23 17:56:23 +01:00
|
|
|
{% include page__hero.html %}
|
2017-01-24 15:29:34 +01:00
|
|
|
{% elsif page.header.video.id and page.header.video.provider %}
|
|
|
|
{% include page__hero_video.html %}
|
2016-03-23 17:56:23 +01:00
|
|
|
{% endif %}
|
2016-03-04 18:37:24 +01:00
|
|
|
|
2016-04-07 22:05:17 +02:00
|
|
|
{% if page.url != "/" and site.breadcrumbs %}
|
2016-04-14 20:36:48 +02:00
|
|
|
{% unless paginator %}
|
|
|
|
{% include breadcrumbs.html %}
|
|
|
|
{% endunless %}
|
2016-03-23 17:56:23 +01:00
|
|
|
{% endif %}
|
2016-02-23 04:32:17 +01:00
|
|
|
|
2016-03-23 17:56:23 +01:00
|
|
|
<div id="main" role="main">
|
|
|
|
{% include sidebar.html %}
|
2016-02-23 04:32:17 +01:00
|
|
|
|
2018-11-27 15:07:51 +01:00
|
|
|
<article class="page" itemscope itemtype="https://schema.org/CreativeWork">
|
2016-03-24 02:50:22 +01:00
|
|
|
{% if page.title %}<meta itemprop="headline" content="{{ page.title | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
|
2016-03-23 17:56:23 +01:00
|
|
|
{% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
|
|
|
|
{% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date: "%B %d, %Y" }}">{% endif %}
|
2017-04-04 15:12:32 +02:00
|
|
|
{% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date: "%B %d, %Y" }}">{% endif %}
|
2016-03-20 02:50:18 +01:00
|
|
|
|
2016-03-23 17:56:23 +01:00
|
|
|
<div class="page__inner-wrap">
|
2016-03-24 02:50:22 +01:00
|
|
|
{% unless page.header.overlay_color or page.header.overlay_image %}
|
|
|
|
<header>
|
2018-03-20 17:38:54 +01:00
|
|
|
{% if page.title %}<h1 id="page-title" class="page__title" itemprop="headline">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</h1>{% endif %}
|
2016-04-07 22:25:50 +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-04-07 22:25:50 +02:00
|
|
|
{% endif %}
|
2016-03-24 02:50:22 +01:00
|
|
|
</header>
|
|
|
|
{% endunless %}
|
2013-05-24 16:25:31 +02:00
|
|
|
|
2016-03-23 17:56:23 +01:00
|
|
|
<section class="page__content" itemprop="text">
|
2017-10-20 20:54:06 +02:00
|
|
|
{% if page.toc %}
|
2018-05-31 16:22:02 +02:00
|
|
|
<aside class="sidebar__right {% if page.toc_sticky %}sticky{% endif %}">
|
2017-10-20 20:54:06 +02:00
|
|
|
<nav class="toc">
|
2019-06-28 01:00:23 +02:00
|
|
|
<header><h4 class="nav__title"><i class="fas fa-{{ page.toc_icon | default: 'file-alt' }}"></i> {{ page.toc_label | default: site.data.ui-text[site.locale].toc_label | default: "On this page" }}</h4></header>
|
2018-08-15 15:34:45 +02:00
|
|
|
{% include toc.html sanitize=true html=content h_min=1 h_max=6 class="toc__menu" %}
|
2017-10-20 20:54:06 +02:00
|
|
|
</nav>
|
|
|
|
</aside>
|
|
|
|
{% endif %}
|
2016-03-23 17:56:23 +01:00
|
|
|
{{ content }}
|
2017-09-12 18:01:43 +02:00
|
|
|
{% if page.link %}<div><a href="{{ page.link }}" class="btn btn--primary">{{ site.data.ui-text[site.locale].ext_link_label | default: "Direct Link" }}</a></div>{% endif %}
|
2016-03-23 17:56:23 +01:00
|
|
|
</section>
|
2013-05-24 16:25:31 +02:00
|
|
|
|
2016-03-23 17:56:23 +01:00
|
|
|
<footer class="page__meta">
|
|
|
|
{% if site.data.ui-text[site.locale].meta_label %}
|
|
|
|
<h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4>
|
|
|
|
{% endif %}
|
|
|
|
{% include page__taxonomy.html %}
|
2017-04-04 15:12:32 +02:00
|
|
|
{% if page.last_modified_at %}
|
2018-01-04 20:27:27 +01:00
|
|
|
<p class="page__date"><strong><i class="fas fa-fw fa-calendar-alt" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}</strong> <time datetime="{{ page.last_modified_at | date: "%Y-%m-%d" }}">{{ page.last_modified_at | date: "%B %d, %Y" }}</time></p>
|
2016-03-23 17:56:23 +01:00
|
|
|
{% elsif page.date %}
|
2018-01-04 20:27:27 +01:00
|
|
|
<p class="page__date"><strong><i class="fas fa-fw fa-calendar-alt" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Updated:" }}</strong> <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time></p>
|
2016-03-23 17:56:23 +01:00
|
|
|
{% endif %}
|
|
|
|
</footer>
|
|
|
|
|
2016-04-08 02:45:24 +02:00
|
|
|
{% if page.share %}{% include social-share.html %}{% endif %}
|
2016-03-30 05:13:00 +02:00
|
|
|
|
|
|
|
{% include post_pagination.html %}
|
2016-03-23 17:56:23 +01:00
|
|
|
</div>
|
|
|
|
|
2017-11-27 18:12:22 +01:00
|
|
|
{% if jekyll.environment == 'production' and site.comments.provider and page.comments %}
|
2016-03-23 17:56:23 +01:00
|
|
|
{% include comments.html %}
|
2016-03-18 20:07:02 +01:00
|
|
|
{% endif %}
|
2016-03-23 17:56:23 +01:00
|
|
|
</article>
|
|
|
|
|
2017-09-05 19:02:37 +02:00
|
|
|
{% comment %}<!-- only show related on a post page when `related: true` -->{% endcomment %}
|
2016-03-23 17:56:23 +01:00
|
|
|
{% if page.id and page.related and site.related_posts.size > 0 %}
|
|
|
|
<div class="page__related">
|
2017-03-16 15:21:13 +01:00
|
|
|
<h4 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h4>
|
2016-03-23 17:56:23 +01:00
|
|
|
<div class="grid__wrapper">
|
|
|
|
{% for post in site.related_posts limit:4 %}
|
|
|
|
{% include archive-single.html type="grid" %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2016-03-18 20:07:02 +01:00
|
|
|
</div>
|
2017-09-05 19:02:37 +02:00
|
|
|
{% comment %}<!-- otherwise show recent posts if no related when `related: true` -->{% endcomment %}
|
|
|
|
{% elsif page.id and page.related %}
|
|
|
|
<div class="page__related">
|
|
|
|
<h4 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h4>
|
|
|
|
<div class="grid__wrapper">
|
|
|
|
{% for post in site.posts limit:4 %}
|
2018-11-26 02:54:44 +01:00
|
|
|
{% if post.id == page.id %}
|
|
|
|
{% continue %}
|
|
|
|
{% endif %}
|
2017-09-05 19:02:37 +02:00
|
|
|
{% include archive-single.html type="grid" %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-23 17:56:23 +01:00
|
|
|
{% endif %}
|
2018-11-27 15:07:51 +01:00
|
|
|
</div>
|