Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott authored and astrobot-houston committed Aug 15, 2022
1 parent 0e2f4d7 commit faa49db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/blog/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
});
3 changes: 1 addition & 2 deletions examples/blog/src/pages/blog.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
---

Expand Down
15 changes: 8 additions & 7 deletions examples/blog/src/pages/rss.xml.js
Original file line number Diff line number Diff line change
@@ -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'),
});

0 comments on commit faa49db

Please sign in to comment.