From 0f5055529dde90a9654a0cd35e7b346918bf4062 Mon Sep 17 00:00:00 2001 From: Garrit Franke Date: Wed, 7 Oct 2020 21:53:55 +0200 Subject: [PATCH] Add dots to end of concatenated summaries --- components/BlogList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/BlogList.js b/components/BlogList.js index fbeba09..1257640 100644 --- a/components/BlogList.js +++ b/components/BlogList.js @@ -7,7 +7,7 @@ function reformatDate(fullDate) { } function truncateSummary(content) { - return content.slice(0, 200).trimEnd(); + return content.slice(0, 200).trimEnd() + "..."; } const BlogList = ({ posts }) => {