fix broken rss guid and link

This commit is contained in:
Timothy 2021-01-19 21:40:24 +08:00
parent 95da0d0e63
commit 2b2ea2747c

View File

@ -2,9 +2,9 @@ import siteMetadata from '@/data/siteMetadata'
const generateRssItem = (post) => `
<item>
<guid>${siteMetadata.siteUrl}${post.slug}</guid>
<guid>${siteMetadata.siteUrl}/${post.slug}</guid>
<title>${post.title}</title>
<link>${siteMetadata.siteUrl}${post.slug}</link>
<link>${siteMetadata.siteUrl}/${post.slug}</link>
<description>${post.summary}</description>
<pubDate>${new Date(post.date).toUTCString()}</pubDate>
<author>${siteMetadata.email} (${siteMetadata.author})</author>