diff options
-rw-r--r-- | _includes/functions/get_article_excerpt.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/_includes/functions/get_article_excerpt.html b/_includes/functions/get_article_excerpt.html index da1f914..73793fd 100644 --- a/_includes/functions/get_article_excerpt.html +++ b/_includes/functions/get_article_excerpt.html @@ -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 %} |