fix: remove unwanted URLs for daily emails
This commit is contained in:
parent
69112f3976
commit
18a1dd0e03
53 changed files with 11 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
import rss from '@astrojs/rss';
|
||||
|
||||
const emailImportResult = import.meta.glob('./daily-emails/**/*.md', { eager: true });
|
||||
const emailImportResult = import.meta.glob('../daily-emails/*.md', { eager: true });
|
||||
const emails = Object.values(emailImportResult)
|
||||
.sort((a, b) =>
|
||||
new Date(b.frontmatter.pubDate).valueOf() -
|
||||
|
@ -8,13 +8,12 @@ const emails = Object.values(emailImportResult)
|
|||
)
|
||||
|
||||
export const get = () => rss({
|
||||
title: 'Daily list',
|
||||
title: 'Daily email list',
|
||||
description: 'A daily newsletter on software development, DevOps, community, and open-source.',
|
||||
site: import.meta.env.SITE,
|
||||
items: emails.map((email) => ({
|
||||
description: email.compiledContent(),
|
||||
link: email.url,
|
||||
pubDate: email.frontmatter.pubDate,
|
||||
link: `${import.meta.env.SITE}${email.frontmatter.permalink}`,
|
||||
title: email.frontmatter.title,
|
||||
pubDate: email.frontmatter.pubDate,
|
||||
}))
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue