blog/_includes/views/post-header.html

27 lines
1 KiB
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>
<h2 class="post-subtitle">{{ subheading | default: page.subtitle | escape }}</h2>
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" -%}
2020-07-16 13:25:52 +02:00
<i class="fa fa-calendar"></i> {{ page.date | date: date_format }}
2019-09-11 06:19:34 +02:00
</time>
2020-07-16 13:25:52 +02:00
{% assign article = page.content %}
{% assign lang = page.lang %}
2020-07-16 13:25:52 +02:00
{%- include functions.html func='get_reading_time' -%}
{% assign reading_time = return %}
<span class="post-reading-time left-vsplit"><i class="fa fa-clock-o"></i> {{ reading_time }}</span>
2019-09-11 06:19:34 +02:00
</p>
2020-07-12 10:23:23 +02:00
{%- if page.tags.size > 0 -%}
<div class="post-tags">
{%- for tag in page.tags -%}
2020-09-22 05:07:09 +02:00
<a class="post-tag" href="{{ '/tags.html ' | relative_url }}#{{tag}}">#{{tag}}</a>
2020-07-12 10:23:23 +02:00
{%- endfor -%}
</div>
{%- endif -%}
2019-09-11 06:19:34 +02:00
</header>