From 2fa67e275433e98556706b32d33db93e270c051c Mon Sep 17 00:00:00 2001 From: Johannah Sprinz Date: Tue, 8 Feb 2022 16:30:04 +0100 Subject: tweak abstract truncation truncate abstracts longer than 550 chars at the 500 char mark --- fatcat_scholar/templates/search_macros.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fatcat_scholar') diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 45c3c28..1b331bc 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -368,11 +368,11 @@ {% elif paper.abstracts %}
- {% if paper.abstracts[0].body|length > 500 %} + {% if paper.abstracts[0].body|length > 550 %} {{ paper.abstracts[0].body | truncate(500, False, '') }}
{% trans %}more »{% endtrans %} - ... {{ paper.abstracts[0].body[480:] }} + ... {{ paper.abstracts[0].body[500:] }}
{% else %} {{ paper.abstracts[0].body }} -- cgit v1.2.3