From 2363157807dec4519a9d227b9951814429cf3691 Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Thu, 16 Jul 2020 19:25:52 +0800 Subject: feat: add reading time and icons --- _includes/views/pagination.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '_includes/views/pagination.html') diff --git a/_includes/views/pagination.html b/_includes/views/pagination.html index 48e27bb..bcc3620 100644 --- a/_includes/views/pagination.html +++ b/_includes/views/pagination.html @@ -11,6 +11,11 @@ {%- for post in paginator.posts -%}
  • {%- assign date_format = site.yat.date_format | default: "%b %-d, %Y" -%} + + {% assign article = post.content %} + {%- include functions.html func='get_reading_time' -%} + {% assign reading_time = return %} +

    {%- assign post_url = post.url | relative_url -%} @@ -18,7 +23,8 @@

    {{ post.content | strip_html | truncatewords: 50 }} -- cgit v1.2.3