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 _words = _article | size %}
|
||||
|
||||
{% assign _size = excerpt_size %}
|
||||
|
||||
{% if lang != "en" %}
|
||||
{% assign _size = words
|
||||
| times: 1.0
|
||||
| divided_by: _words
|
||||
| times: excerpt_size
|
||||
| times: _size
|
||||
| round %}
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue