summaryrefslogtreecommitdiff
path: root/examples/blog/src
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog/src')
-rw-r--r--examples/blog/src/pages/blog.astro3
-rw-r--r--examples/blog/src/pages/rss.xml.js15
2 files changed, 9 insertions, 9 deletions
diff --git a/examples/blog/src/pages/blog.astro b/examples/blog/src/pages/blog.astro
index 73576c498..6c0d05639 100644
--- a/examples/blog/src/pages/blog.astro
+++ b/examples/blog/src/pages/blog.astro
@@ -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()
);
---
diff --git a/examples/blog/src/pages/rss.xml.js b/examples/blog/src/pages/rss.xml.js
index 9fd153480..d9113c11b 100644
--- a/examples/blog/src/pages/rss.xml.js
+++ b/examples/blog/src/pages/rss.xml.js
@@ -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'),
- }); \ No newline at end of file
+export const get = () =>
+ rss({
+ title: SITE_TITLE,
+ description: SITE_DESCRIPTION,
+ site: import.meta.env.SITE,
+ items: import.meta.glob('./blog/**/*.md'),
+ });