Fix broken read_time in blog/index.html (#469)

This commit is contained in:
Xiaochen Zhu 2021-11-22 02:48:43 +08:00 committed by GitHub
parent 5612275e48
commit b45b247501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ pagination:
<ul class="post-list"> <ul class="post-list">
{% for post in paginator.posts %} {% for post in paginator.posts %}
{% assign read_time = page.content | number_of_words | divided_by: 180 | plus: 1 %} {% assign read_time = post.content | number_of_words | divided_by: 180 | plus: 1 %}
{% assign year = post.date | date: "%Y" %} {% assign year = post.date | date: "%Y" %}
{% assign tags = post.tags | join: "" %} {% assign tags = post.tags | join: "" %}
{% assign categories = post.categories | join: "" %} {% assign categories = post.categories | join: "" %}