mirror of
https://github.com/minoplhy/minima-dark.git
synced 2024-11-13 23:27:11 +00:00
Update '_layouts/post.html'
This commit is contained in:
parent
cf5139036f
commit
d97b70cd1f
@ -1,6 +1,14 @@
|
||||
---
|
||||
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">
|
||||
|
||||
<header class="post-header">
|
||||
@ -8,7 +16,7 @@ layout: default
|
||||
<p class="post-meta">
|
||||
{%- 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>
|
||||
{{ page.date | date: date_format }}
|
||||
{{ page.date | date: date_format }} | {{ minutes }} minute read
|
||||
</time>
|
||||
{%- if page.modified_date -%}
|
||||
~
|
||||
|
Loading…
Reference in New Issue
Block a user