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 ;-)
This commit is contained in:
parent
8552146c8d
commit
39dfe89b9a
2 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,7 @@ const PostCard = ({ post, isLarge }) => {
|
|||
{post.tags && post.tags[0] && <div className="post-card-tags">{post.tags[0].name}</div>}
|
||||
{post.featured && <span>Featured</span>}
|
||||
<h2 className="post-card-title">{post.title}</h2>
|
||||
<section className="post-card-excerpt">{ /* post.subtitle */ }</section>
|
||||
<section className="post-card-excerpt">{ post.excerpt.length <= 120 && post.excerpt }</section>
|
||||
<footer className="post-card-footer">
|
||||
<div className="post-card-footer-left">
|
||||
<div className="post-card-avatar">
|
||||
|
|
|
@ -862,6 +862,8 @@ h6 {
|
|||
.post-card-excerpt {
|
||||
font-size: 1.6rem;
|
||||
line-height: 1.55em;
|
||||
color: #7F7F7F;
|
||||
margin: 0.2rem 0.2rem 2rem 0.2rem;
|
||||
}
|
||||
|
||||
.post-card-image {
|
||||
|
|
Loading…
Reference in a new issue