redesign draft 1
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import rss from '@astrojs/rss'
|
||||
import { getCollection } from 'astro:content'
|
||||
import sanitizeHtml from 'sanitize-html'
|
||||
import MarkdownIt from 'markdown-it'
|
||||
const parser = new MarkdownIt({ html: true })
|
||||
import rss from '@astrojs/rss';
|
||||
import { getCollection } from 'astro:content';
|
||||
import sanitizeHtml from 'sanitize-html';
|
||||
import MarkdownIt from 'markdown-it';
|
||||
const parser = new MarkdownIt({ html: true });
|
||||
|
||||
export async function get(context) {
|
||||
const blog = await getCollection('blog')
|
||||
const blog = await getCollection('blog');
|
||||
return rss({
|
||||
title: 'ghall.blog',
|
||||
description:
|
||||
@@ -19,5 +19,5 @@ export async function get(context) {
|
||||
link: `/posts/${post.slug}/`,
|
||||
content: sanitizeHtml(parser.render(post.body)),
|
||||
})),
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user