Don't use tabs in editor

This commit is contained in:
prototypa
2023-01-09 21:44:06 -05:00
parent 58484dfca8
commit f641767078
56 changed files with 2217 additions and 2203 deletions

View File

@ -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,
})),
});
};