Don't use tabs in editor
This commit is contained in:
@ -5,25 +5,25 @@ import { fetchPosts } from '~/utils/blog';
|
||||
import { getPermalink } from '~/utils/permalinks';
|
||||
|
||||
export const get = async () => {
|
||||
if (BLOG.disabled) {
|
||||
return new Response(null, {
|
||||
status: 404,
|
||||
statusText: 'Not found',
|
||||
});
|
||||
}
|
||||
if (BLOG.disabled) {
|
||||
return new Response(null, {
|
||||
status: 404,
|
||||
statusText: 'Not found',
|
||||
});
|
||||
}
|
||||
|
||||
const posts = await fetchPosts();
|
||||
const posts = await fetchPosts();
|
||||
|
||||
return rss({
|
||||
title: `${SITE.name}’s Blog`,
|
||||
description: SITE.description,
|
||||
site: import.meta.env.SITE,
|
||||
return rss({
|
||||
title: `${SITE.name}’s Blog`,
|
||||
description: SITE.description,
|
||||
site: import.meta.env.SITE,
|
||||
|
||||
items: posts.map((post) => ({
|
||||
link: getPermalink(post.slug, 'post'),
|
||||
title: post.title,
|
||||
description: post.description,
|
||||
pubDate: post.publishDate,
|
||||
})),
|
||||
});
|
||||
items: posts.map((post) => ({
|
||||
link: getPermalink(post.slug, 'post'),
|
||||
title: post.title,
|
||||
description: post.description,
|
||||
pubDate: post.publishDate,
|
||||
})),
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user