From 39dfe89b9a3c9df26646847db138dd3b32fdf6e3 Mon Sep 17 00:00:00 2001 From: Hippo Date: Thu, 5 Dec 2019 16:06:43 +0530 Subject: [PATCH] Show excerpts if they're not too long In practice, that means we'll just copy-paste the "bylines" for the Snipette excerpts. Then they'll be short enough ;-) --- src/components/common/PostCard.js | 2 +- src/styles/app.css | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/common/PostCard.js b/src/components/common/PostCard.js index 38fd27e..1c2dee1 100644 --- a/src/components/common/PostCard.js +++ b/src/components/common/PostCard.js @@ -25,7 +25,7 @@ const PostCard = ({ post, isLarge }) => { {post.tags && post.tags[0] &&
{post.tags[0].name}
} {post.featured && Featured}

{post.title}

-
{ /* post.subtitle */ }
+
{ post.excerpt.length <= 120 && post.excerpt }