Update '_layouts/post.html'

This commit is contained in:
Kale 2021-06-08 10:39:19 -07:00
parent cf5139036f
commit d97b70cd1f
No known key found for this signature in database
GPG Key ID: F8A6CE83F1274467

View File

@ -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 -%}
~ ~