2019-03-28 19:40:33 -04:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
---
|
|
|
|
|
2019-04-13 20:30:29 -04:00
|
|
|
{% if page.header.overlay_color or page.header.overlay_image or page.header.image %}
|
2019-04-05 15:47:16 -04:00
|
|
|
{% include page__hero.html %}
|
|
|
|
{% elsif page.header.video.id and page.header.video.provider %}
|
|
|
|
{% include page__hero_video.html %}
|
|
|
|
{% endif %}
|
2019-03-28 19:40:33 -04:00
|
|
|
|
2023-03-31 12:15:12 -04:00
|
|
|
{% assign breadcrumbs_enabled = site.breadcrumbs %}
|
2023-02-10 04:44:06 -05:00
|
|
|
{% if page.breadcrumbs != null %}
|
|
|
|
{% assign breadcrumbs_enabled = page.breadcrumbs %}
|
|
|
|
{% endif %}
|
|
|
|
{% if page.url != "/" and breadcrumbs_enabled %}
|
2019-03-28 19:40:33 -04:00
|
|
|
{% unless paginator %}
|
|
|
|
{% include breadcrumbs.html %}
|
|
|
|
{% endunless %}
|
2019-04-13 20:30:29 -04:00
|
|
|
{% endif %}
|
2019-03-28 19:40:33 -04:00
|
|
|
|
|
|
|
<div id="main" role="main">
|
|
|
|
{% include sidebar.html %}
|
|
|
|
|
2023-02-10 04:44:06 -05:00
|
|
|
<article class="page h-entry" itemscope itemtype="https://schema.org/CreativeWork">
|
2019-03-28 19:40:33 -04:00
|
|
|
{% if page.title %}<meta itemprop="headline" content="{{ page.title | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
|
|
|
|
{% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
|
2023-02-10 04:44:06 -05:00
|
|
|
{% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date_to_xmlschema }}">{% endif %}
|
|
|
|
{% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date_to_xmlschema }}">{% endif %}
|
2019-03-28 19:40:33 -04:00
|
|
|
|
|
|
|
<div class="page__inner-wrap">
|
|
|
|
{% unless page.header.overlay_color or page.header.overlay_image %}
|
|
|
|
<header>
|
2023-02-10 04:44:06 -05:00
|
|
|
{% if page.title %}<h1 id="page-title" class="page__title p-name" itemprop="headline">
|
|
|
|
<a href="{{ page.url | absolute_url }}" class="u-url" itemprop="url">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</a>
|
|
|
|
</h1>{% endif %}
|
|
|
|
{% include page__meta.html %}
|
2019-03-28 19:40:33 -04:00
|
|
|
</header>
|
|
|
|
{% endunless %}
|
|
|
|
|
2023-02-10 04:44:06 -05:00
|
|
|
<section class="page__content e-content" itemprop="text">
|
2019-03-28 19:40:33 -04:00
|
|
|
{% if page.toc %}
|
|
|
|
<aside class="sidebar__right {% if page.toc_sticky %}sticky{% endif %}">
|
|
|
|
<nav class="toc">
|
2019-07-09 00:14:28 -04: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>
|
2023-02-10 04:44:06 -05:00
|
|
|
{% include toc.html sanitize=true html=content h_min=1 h_max=6 class="toc__menu" skip_no_ids=true %}
|
2019-03-28 19:40:33 -04:00
|
|
|
</nav>
|
|
|
|
</aside>
|
|
|
|
{% endif %}
|
|
|
|
{{ content }}
|
|
|
|
{% 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 %}
|
|
|
|
</section>
|
2023-02-10 04:44:06 -05:00
|
|
|
|
2019-03-28 19:40:33 -04:00
|
|
|
<footer class="page__meta">
|
|
|
|
{% if site.data.ui-text[site.locale].meta_label %}
|
2023-02-10 04:44:06 -05:00
|
|
|
<h4 class="page__meta-title">{{ site.data.ui-text[site.locale].meta_label }}</h4>
|
2019-03-28 19:40:33 -04:00
|
|
|
{% endif %}
|
|
|
|
{% include page__taxonomy.html %}
|
2023-02-10 04:44:06 -05:00
|
|
|
{% include page__date.html %}
|
2019-03-28 19:40:33 -04:00
|
|
|
</footer>
|
2023-02-10 04:44:06 -05:00
|
|
|
|
|
|
|
{% if page.share %}{% include social-share.html %}{% endif %}
|
|
|
|
|
|
|
|
{% include post_pagination.html %}
|
2019-03-28 19:40:33 -04:00
|
|
|
</div>
|
2023-02-10 04:44:06 -05:00
|
|
|
|
|
|
|
{% if jekyll.environment == 'production' and site.comments.provider and page.comments %}
|
2019-03-28 19:40:33 -04:00
|
|
|
{% include comments.html %}
|
|
|
|
{% endif %}
|
|
|
|
</article>
|
|
|
|
|
2023-02-10 04:44:06 -05:00
|
|
|
{% comment %}<!-- only show related on a post page when `related: true` -->{% endcomment %}
|
|
|
|
{% if page.id and page.related and site.related_posts.size > 0 %}
|
|
|
|
<div class="page__related">
|
|
|
|
<h2 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h2>
|
|
|
|
<div class="grid__wrapper">
|
|
|
|
{% for post in site.related_posts limit:4 %}
|
|
|
|
{% include archive-single.html type="grid" %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% comment %}<!-- otherwise show recent posts if no related when `related: true` -->{% endcomment %}
|
|
|
|
{% elsif page.id and page.related %}
|
|
|
|
<div class="page__related">
|
|
|
|
<h2 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h2>
|
|
|
|
<div class="grid__wrapper">
|
|
|
|
{% for post in site.posts limit:4 %}
|
|
|
|
{% if post.id == page.id %}
|
|
|
|
{% continue %}
|
2019-03-28 19:40:33 -04:00
|
|
|
{% endif %}
|
2023-02-10 04:44:06 -05:00
|
|
|
{% include archive-single.html type="grid" %}
|
|
|
|
{% endfor %}
|
2019-03-28 19:40:33 -04:00
|
|
|
</div>
|
2023-02-10 04:44:06 -05:00
|
|
|
</div>
|
2019-03-28 19:40:33 -04:00
|
|
|
{% endif %}
|
|
|
|
</div>
|