mirror of
https://github.com/mat-1/matdoesdev.git
synced 2025-08-02 14:46:04 +00:00
atom is silly
This commit is contained in:
parent
7682f27c40
commit
220cf92e20
1 changed files with 1 additions and 5 deletions
|
@ -7,10 +7,6 @@ export const prerender = true
|
|||
export const GET: RequestHandler = async ({ fetch }) => {
|
||||
const posts = await getPostsUntrimmed()
|
||||
function item(post: BlogPost) {
|
||||
const escapedPostHtml = post.html
|
||||
.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
return `
|
||||
<entry>
|
||||
<title>${post.title}</title>
|
||||
|
@ -18,7 +14,7 @@ export const GET: RequestHandler = async ({ fetch }) => {
|
|||
<id>https://matdoes.dev/${post.slug}</id>
|
||||
<published>${post.published}</published>
|
||||
<updated>${post.published}</updated>
|
||||
<content type="xhtml">${escapedPostHtml}</content>
|
||||
<content type="xhtml">${post.html}</content>
|
||||
</entry>
|
||||
`
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue