home/_layouts/post.html

36 lines
1.3 KiB
HTML

---
layout: default
---
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
<h1 class="post-title" itemprop="name headline">{{ page.title | escape }}</h1>
<p class="post-meta">
{%- assign date_format = site.date_format | default: '%b %-d, %Y' -%}
<time class="post-datepublished" datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">
{{ page.date | date: date_format }}
</time>
{%- if page.modified_date -%}
~
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
<time class="post-datemodified" datetime="{{ mdate }}" itemprop="dateModified">
{{ mdate | date: date_format }}
</time>
{%- endif -%}
{%- if page.author -%}
&bull; {%- for author in page.author -%}
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span class="post-author" itemprop="name"><em>{{ author }}</em></span></span>
{%- if forloop.last == false -%}, {%- endif -%}
{%- endfor -%}
{%- endif -%}
</p>
</header>
<div class="post-content" itemprop="articleBody">
{{ content }}
</div>
<a class="u-url" hidden href="{{ page.url | relative_url }}"></a>
</article>