File tree Expand file tree Collapse file tree 6 files changed +10
-1
lines changed Expand file tree Collapse file tree 6 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
source 'https://rubygems.org'
2
2
gem 'github-pages' , group : :jekyll_plugins
3
+ gem 'liquid_reading_time' , group : :jekyll_plugins
Original file line number Diff line number Diff line change 168
168
jekyll (>= 3.0 )
169
169
kramdown (1.13.2 )
170
170
liquid (4.0.0 )
171
+ liquid_reading_time (1.1.3 )
172
+ liquid (>= 2.6 , < 5.0 )
173
+ nokogiri (~> 1.6 )
171
174
listen (3.0.6 )
172
175
rb-fsevent (>= 0.9.3 )
173
176
rb-inotify (>= 0.9.7 )
@@ -212,6 +215,7 @@ PLATFORMS
212
215
213
216
DEPENDENCIES
214
217
github-pages
218
+ liquid_reading_time
215
219
216
220
BUNDLED WITH
217
- 1.14.6
221
+ 1.15.4
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ <h2 class="page-description">
35
35
< header class ="post-header ">
36
36
< section class ="post-meta ">
37
37
< time class ="post-date " datetime ="{{ page.date | date: "%Y-%m-%d " }}"> {{ page.date | date_to_string }}</ time >
38
+ , {{ content | reading_time }} min read.
38
39
{% if page.categories.size > 0 %}
39
40
{{ page.categories | array_to_sentence_string | prepend: 'on ' }}
40
41
{% endif %}
Original file line number Diff line number Diff line change 20
20
{% endif %}
21
21
<pubDate >{{ post.date | date_to_rfc822 }}</pubDate >
22
22
<link >{{ site.url }}{{ post.url }}</link >
23
+ <read >{{post.content | reading_time }} min</read >
23
24
<guid isPermaLink =" true" >{{ site.url }}{{ post.url }}</guid >
24
25
</item >
25
26
{% endfor %}
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ <h2 class="post-title"><a href="{{ post.url }}">{{ post.title }}</a></h2>
49
49
alt ="profile " nopin ="nopin " />
50
50
{{ author.name }}
51
51
{% endif %}
52
+ , {{ post.content | reading_time }} min read.
52
53
{% if post.categories.size > 0 %}
53
54
{{ post.categories | array_to_sentence_string | prepend: 'on ' }}
54
55
{% endif %}
Original file line number Diff line number Diff line change 20
20
{% endif %}
21
21
<pubDate >{{ post.date | date_to_rfc822 }}</pubDate >
22
22
<link >{{ site.url }}{{ post.url }}</link >
23
+ <read >{{post.content | reading_time }} min</read >
23
24
<guid isPermaLink =" true" >{{ site.url }}{{ post.url }}</guid >
24
25
</item >
25
26
{% endfor %}
You can’t perform that action at this time.
0 commit comments