decentralized-id.github.io/_layouts/single.html

96 lines
4.6 KiB
HTML
Raw Permalink Normal View History

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
{% if page.url != "/" and site.breadcrumbs %}
{% 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 %}
<article class="page" itemscope itemtype="https://schema.org/CreativeWork">
{% 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 %}
{% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date: "%B %d, %Y" }}">{% endif %}
{% if page.last_modified_at %}<meta itemprop="dateModified" content="{{ page.last_modified_at | date: "%B %d, %Y" }}">{% endif %}
<div class="page__inner-wrap">
{% unless page.header.overlay_color or page.header.overlay_image %}
<header>
{% if page.title %}<h1 id="page-title" class="page__title" itemprop="headline">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</h1>{% endif %}
{% if page.read_time %}
<p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i> {% include read-time.html %}</p>
{% endif %}
</header>
{% endunless %}
<section class="page__content" itemprop="text">
{% 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>
2019-03-28 19:40:33 -04:00
{% include toc.html sanitize=true html=content h_min=1 h_max=6 class="toc__menu" %}
</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>
<footer class="page__meta">
2020-11-05 20:34:59 -05:00
<hr/>
2019-03-28 19:40:33 -04:00
{% if site.data.ui-text[site.locale].meta_label %}
2020-11-05 20:34:59 -05:00
<h3>{{ site.data.ui-text[site.locale].meta_label }}</h3>
2019-03-28 19:40:33 -04:00
{% endif %}
{% include page__taxonomy.html %}
{% if page.last_modified_at %}
<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>
{% elsif page.date %}
<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>
{% endif %}
2020-11-05 20:34:59 -05:00
<h3><a href="https://github.com/Decentralized-ID/decentralized-id.github.io/blob/master/{{ page.path }}" class="edit">Edit this page <i class="fa fa-pencil"></i></a></h3>
{% if page.share %}{% include social-share.html %}{% endif %}
<hr/>
2019-03-28 19:40:33 -04:00
</footer>
</div>
2020-10-10 02:40:48 -04:00
{% if site.comments.provider and page.comments %}
2019-03-28 19:40:33 -04:00
{% include comments.html %}
{% endif %}
</article>
2020-11-29 22:13:01 -05:00
{% comment %}<!-- show posts by related tags when `related: true` -->{% endcomment %}
{% if page.related %}
{% assign n_posts = 0 %}
{% for post in site.posts %}
{% if post.id == page.id %}{% continue %}{% endif %}
{% for this_category in page.categories %}
{% if post.categories contains this_category %}
{% if n_posts == 0 %}
<div class="page__related">
{% if site.data.ui-text[site.locale].related_label %}
<h4 class="page__related-title">{{ site.data.ui-text[site.locale].related_label | default: "You May Also Enjoy" }}</h4>
{% endif %}
<div class="grid__wrapper">
{% endif %}
{% include archive-single.html type="grid" %}
{% assign n_posts = n_posts | plus: 1 %}
{% break %}
2019-03-28 19:40:33 -04:00
{% endif %}
2020-11-29 22:13:01 -05:00
{% endfor %}
{% if n_posts > 3 %}{% break %}{% endif %}
{% endfor %}
{% if n_posts > 0 %}
</div>
2019-03-28 19:40:33 -04:00
</div>
2020-11-29 22:13:01 -05:00
{% endif %}
2019-03-28 19:40:33 -04:00
{% endif %}
</div>