blog/_includes/views/post-header.html

21 lines
700 B
HTML
Raw Normal View History

2019-09-11 06:19:34 +02:00
<header class="post-header">
<h1 class="post-title p-name" itemprop="name headline">{{ heading | default: page.title | escape }}</h1>
2020-07-12 10:23:23 +02:00
<h3 class="post-subtitle">{{ subheading | default: page.subtitle | escape }}</h3>
2019-09-11 06:19:34 +02:00
<p class="post-meta">
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{%- assign date_format = site.yat.date_format | default: "%b %-d, %Y" -%}
{{ page.date | date: date_format }}
</time>
</p>
2020-07-12 10:23:23 +02:00
{%- if page.tags.size > 0 -%}
<div class="post-tags">
{%- for tag in page.tags -%}
<a class="post-tag" href="/tags.html#{{tag}}">#{{tag}}</a>
{%- endfor -%}
</div>
{%- endif -%}
2019-09-11 06:19:34 +02:00
</header>