fix: generate-rss.js description [object Object]
This commit is contained in:
parent
8f95415a78
commit
5d68b47bac
@ -7,7 +7,7 @@ const generateRssItem = (post) => `
|
||||
<guid>${siteMetadata.siteUrl}/blog/${post.slug}</guid>
|
||||
<title>${escape(post.title)}</title>
|
||||
<link>${siteMetadata.siteUrl}/blog/${post.slug}</link>
|
||||
${post.summary && <description>escape(post.summary)</description>}
|
||||
${post.summary && `<description>${escape(post.summary)}</description>`}
|
||||
<pubDate>${new Date(post.date).toUTCString()}</pubDate>
|
||||
<author>${siteMetadata.email} (${siteMetadata.author})</author>
|
||||
${post.tags && post.tags.map((t) => `<category>${t}</category>`).join('')}
|
||||
|
Loading…
x
Reference in New Issue
Block a user