Update '_layouts/post.html'
This commit is contained in:
parent
cf5139036f
commit
d97b70cd1f
@ -1,6 +1,14 @@
|
|||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
|
{% if page.minutes %}
|
||||||
|
{% assign minutes = page.minutes %}
|
||||||
|
{% else %}
|
||||||
|
{% assign minutes = content | number_of_words | divided_by: 180 %}
|
||||||
|
{% if minutes == 0 %}{% assign minutes = 1 %}{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
|
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
|
||||||
|
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
@ -8,7 +16,7 @@ layout: default
|
|||||||
<p class="post-meta">
|
<p class="post-meta">
|
||||||
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
||||||
<h3><time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished"></h3>
|
<h3><time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished"></h3>
|
||||||
{{ page.date | date: date_format }}
|
{{ page.date | date: date_format }} | {{ minutes }} minute read
|
||||||
</time>
|
</time>
|
||||||
{%- if page.modified_date -%}
|
{%- if page.modified_date -%}
|
||||||
~
|
~
|
||||||
|
Reference in New Issue
Block a user