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 @@

    - + + {{ reading_time }}

    {{ post.content | strip_html | truncatewords: 50 }} 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 @@

    + + {% assign article = page.content %} + {%- include functions.html func='get_reading_time' -%} + {% assign reading_time = return %} + {{ reading_time }}

    {%- if page.tags.size > 0 -%}