feat: add hashtags to email title

This commit is contained in:
Oliver Davies 2023-04-11 14:00:30 +01:00
parent d3e34e6e32
commit 6ba52b85e0

View file

@ -23,7 +23,7 @@ export async function get() {
description: `<div style="max-width: 550px;">${sanitizeHtml(parser.render(email.body))}</div>`, description: `<div style="max-width: 550px;">${sanitizeHtml(parser.render(email.body))}</div>`,
link: `${import.meta.env.SITE}/${email.data.permalink}`, link: `${import.meta.env.SITE}/${email.data.permalink}`,
pubDate: email.data.pubDate, pubDate: email.data.pubDate,
title: email.data.title, title: `${email.data.title} ${email.data.tags.map(tag => `#${tag}`).join(' ')}`,
})) }))
}); });
}; };