Skip to content

Commit

Permalink
chore: fix rss
Browse files Browse the repository at this point in the history
  • Loading branch information
chihuo2104 committed Nov 10, 2023
1 parent 1abc8c8 commit f03e5b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/routes/feed/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export default defineEventHandler(async (event) => {
<published>${new Date(ele.updtime).toISOString()}</published>
<author>${ele.author}</author>
<content type="html">
${marked.parse(ele.content)}
${(ele.banner)?`<img src="${ele.banner}"/>`:""}
<div>${ele.desc}</div>
<div>请移步<a href="${res.settings.site.baseurl + '/posts/' + ele.path}">文章页</a>查看文章详细内容</div>
</content>
<summary type="text">
${ele.desc}
Expand Down

0 comments on commit f03e5b3

Please sign in to comment.