Add a short snippet to the daily RSS feed item
This commit is contained in:
parent
566318ddfc
commit
7801c5f0c5
|
@ -13,6 +13,7 @@ const blogCollection = defineCollection({
|
|||
|
||||
const dailyEmailCollection = defineCollection({
|
||||
schema: z.object({
|
||||
snippet: z.string().optional(),
|
||||
pubDate: z.date(),
|
||||
permalink: z.string(),
|
||||
tags: z.array(z.string()).optional(),
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
---
|
||||
title: >
|
||||
Good code is not about being easy to write
|
||||
snippet: >-
|
||||
Good code is not about being easy to write. It's about how easy it is to change.
|
||||
pubDate: 2023-12-26
|
||||
permalink: >
|
||||
permalink: >-
|
||||
archive/2023/12/26/good-code-is-not-about-being-easy-to-write
|
||||
tags:
|
||||
- software-development
|
||||
|
|
|
@ -54,6 +54,7 @@ export async function get() {
|
|||
pubDate: email.data.pubDate,
|
||||
title: `${email.data.title.trim()}`,
|
||||
customData: `
|
||||
<snippet>${email.data.snippet}</snippet>
|
||||
<tags>
|
||||
#dev ${email.data.tags.map(tag => `#${convertTag(tag)}`).join(' ')}
|
||||
</tags>`,
|
||||
|
|
Loading…
Reference in a new issue