[ci] format
This commit is contained in:
parent
0e2f4d74b7
commit
faa49db39b
3 changed files with 10 additions and 10 deletions
|
@ -6,5 +6,5 @@ import sitemap from '@astrojs/sitemap';
|
|||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: 'https://example.com',
|
||||
integrations: [ mdx(), sitemap()],
|
||||
integrations: [mdx(), sitemap()],
|
||||
});
|
||||
|
|
|
@ -6,8 +6,7 @@ import { SITE_TITLE, SITE_DESCRIPTION } from '../config';
|
|||
|
||||
// Use Astro.glob() to fetch all posts, and then sort them by date.
|
||||
const posts = (await Astro.glob('./blog/*.{md,mdx}')).sort(
|
||||
(a, b) =>
|
||||
new Date(b.frontmatter.pubDate).valueOf() - new Date(a.frontmatter.pubDate).valueOf()
|
||||
(a, b) => new Date(b.frontmatter.pubDate).valueOf() - new Date(a.frontmatter.pubDate).valueOf()
|
||||
);
|
||||
---
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import rss from '@astrojs/rss';
|
||||
import {SITE_TITLE, SITE_DESCRIPTION} from '../config';
|
||||
import { SITE_TITLE, SITE_DESCRIPTION } from '../config';
|
||||
|
||||
export const get = () => rss({
|
||||
title: SITE_TITLE,
|
||||
description: SITE_DESCRIPTION,
|
||||
site: import.meta.env.SITE,
|
||||
items: import.meta.glob('./blog/**/*.md'),
|
||||
});
|
||||
export const get = () =>
|
||||
rss({
|
||||
title: SITE_TITLE,
|
||||
description: SITE_DESCRIPTION,
|
||||
site: import.meta.env.SITE,
|
||||
items: import.meta.glob('./blog/**/*.md'),
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue