website/_layouts/post.html

53 lines
1.8 KiB
HTML
Raw Normal View History

2018-08-17 17:18:40 +00:00
---
layout: default
---
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}{% if page.subtitle %}: <span class="post-subtitle">{{ page.subtitle | escape }}</span>{% endif %}
</h1>
{% if page.alt_title %}
<h2 class="post-alt-title">{{ page.alt_title | escape }}</h2>
{% endif %}
<p class="post-meta">
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<span title="{{ page.date }}">{{ page.date | date: date_format }}</span>
</time>
{%- if page.author -%}
<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }}</span></span>
{%- endif -%}
{%- if page.updatedOn -%}
<div class="dt-updated">Updated: <span>{{ page.updatedOn | escape }}</span></div>
{%- endif -%}
</p>
</header>
<div class="post-content e-content" itemprop="articleBody">
{{ content }}
</div>
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
<br>
{%- if page.updatedOn -%}
<div class="post-updatedOn">Updated: <span class="updatedPostDate">{{ page.updatedOn | escape }}</span></div>
{%- endif -%}
{%- if page.tags -%}
<div class="post-tags">
Tags: &nbsp;
{% for tag in page.tags %}
<a class="link-tag" href="{{site.baseurl}}/tags/#{{tag|slugize}}">{{tag}}</a>
{% unless forloop.last %}&nbsp;{% endunless %}
{% endfor %}
</div>
{%- endif -%}
{%- if site.disqus.shortname -%}
{%- include disqus_comments.html -%}
{%- endif -%}
{%- include addl-post-fns.html -%}
</article>