update code

This commit is contained in:
Raven Scott 2024-09-26 00:14:52 -04:00
parent 348ef3245d
commit dbdd34f521

6
app.js
View File

@ -257,7 +257,7 @@ app.get('/sitemap.xml', (req, res) => {
const lastModifiedDate = format(new Date(stats.birthtime), 'yyyy-MM-dd');
return {
url: `/blog/${slug}`,
url: `https://blog.raven-scott.fyi/${slug}`,
lastmod: lastModifiedDate,
changefreq: 'monthly',
priority: 0.9
@ -319,10 +319,10 @@ app.get('/rss', (req, res) => {
// RSS item for each post
rssFeed += `<item>\n`;
rssFeed += `<title>${title}</title>\n`;
rssFeed += `<link>https://${hostname}/blog/${slug}</link>\n`;
rssFeed += `<link>https://blog.raven-scott.fyi/${slug}</link>\n`;
rssFeed += `<description>${lead || 'Read the full post on the blog.'}</description>\n`;
rssFeed += `<pubDate>${lastModifiedDate}</pubDate>\n`;
rssFeed += `<guid>https://${hostname}/blog/${slug}</guid>\n`;
rssFeed += `<guid>https://blog.raven-scott.fyi/${slug}</guid>\n`;
rssFeed += `</item>\n`;
});