chore: updated truncation of rss posts without titles
8c8940c7
1 file(s) · +1 −1
| 47 | 47 | }); |
|
| 48 | 48 | ||
| 49 | 49 | const items = posts.map((post) => { |
|
| 50 | - | const fallback = post.content ? post.content.slice(0, 80) : post.slug; |
|
| 50 | + | const fallback = post.content ? `${post.content.slice(0, 70)}...` : post.slug; |
|
| 51 | 51 | const htmlContent = md.render(post.content || post.title || ""); |
|
| 52 | 52 | const description = post.meta_description || post.title || fallback; |
|
| 53 | 53 |