summaryrefslogtreecommitdiff
path: root/_includes/views/post-header.html
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2020-07-16 19:25:52 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2020-07-16 19:25:52 +0800
commit2363157807dec4519a9d227b9951814429cf3691 (patch)
treeba6538a73d6fef9864024fdfa9ad2356a9932e23 /_includes/views/post-header.html
parent36641effb1af5e4462868a79c472a2ed6a4f0ea8 (diff)
feat: add reading time and icons
Diffstat (limited to '_includes/views/post-header.html')
-rw-r--r--_includes/views/post-header.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/_includes/views/post-header.html b/_includes/views/post-header.html
index d109597..c82bea3 100644
--- a/_includes/views/post-header.html
+++ b/_includes/views/post-header.html
@@ -5,8 +5,13 @@
<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 }}
+ <i class="fa fa-calendar"></i> {{ page.date | date: date_format }}
</time>
+
+ {% assign article = page.content %}
+ {%- 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>
</p>
{%- if page.tags.size > 0 -%}