fix: invalid integer in get_article_excerpt function
This commit is contained in:
parent
4be8ad5418
commit
d2f3025958
1 changed files with 3 additions and 1 deletions
|
@ -20,11 +20,13 @@
|
||||||
{% assign _article = article | strip_html %}
|
{% assign _article = article | strip_html %}
|
||||||
{% assign _words = _article | size %}
|
{% assign _words = _article | size %}
|
||||||
|
|
||||||
|
{% assign _size = excerpt_size %}
|
||||||
|
|
||||||
{% if lang != "en" %}
|
{% if lang != "en" %}
|
||||||
{% assign _size = words
|
{% assign _size = words
|
||||||
| times: 1.0
|
| times: 1.0
|
||||||
| divided_by: _words
|
| divided_by: _words
|
||||||
| times: excerpt_size
|
| times: _size
|
||||||
| round %}
|
| round %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue