diff options
author | 2022-08-15 04:28:38 +0000 | |
---|---|---|
committer | 2022-08-15 04:28:38 +0000 | |
commit | faa49db39b265373c7b0232b0eabab4350fbf126 (patch) | |
tree | 29c4372ce0fdadd283f5352a21ebe164677984a7 /examples/blog/src/pages/blog.astro | |
parent | 0e2f4d74b77cc05b161afe69a8713935fe41591f (diff) | |
download | astro-faa49db39b265373c7b0232b0eabab4350fbf126.tar.gz astro-faa49db39b265373c7b0232b0eabab4350fbf126.tar.zst astro-faa49db39b265373c7b0232b0eabab4350fbf126.zip |
[ci] format
Diffstat (limited to 'examples/blog/src/pages/blog.astro')
-rw-r--r-- | examples/blog/src/pages/blog.astro | 3 |
1 files changed, 1 insertions, 2 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() ); --- |