summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jeff R <jeff.r.koyaltech@gmail.com> 2024-08-05 06:30:06 -0500
committerGravatar GitHub <noreply@github.com> 2024-08-05 13:30:06 +0200
commit6e5676862b98ed5cadf1bc3d1920d992820ab936 (patch)
treeb16a9461e57b5f283e259bc974281b5e7f5740cd
parent196092ae69eb1249206846ddfc162049b03f42b4 (diff)
downloadastro-6e5676862b98ed5cadf1bc3d1920d992820ab936.tar.gz
astro-6e5676862b98ed5cadf1bc3d1920d992820ab936.tar.zst
astro-6e5676862b98ed5cadf1bc3d1920d992820ab936.zip
sort newest to oldest (#11587)
* sort newest to oldest * Update pubDate to preserve a meaningful order in the examples/blog folder
-rw-r--r--examples/blog/src/content/blog/markdown-style-guide.md2
-rw-r--r--examples/blog/src/content/blog/using-mdx.mdx2
-rw-r--r--examples/blog/src/pages/blog/index.astro2
-rw-r--r--packages/astro/e2e/fixtures/actions-blog/src/pages/blog/index.astro2
-rw-r--r--packages/astro/e2e/fixtures/actions-react-19/src/pages/blog/index.astro2
-rw-r--r--packages/astro/test/fixtures/content-ssr-integration/src/content/blog/using-mdx.mdx2
-rw-r--r--packages/astro/test/fixtures/content-static-paths-integration/src/content/blog/using-mdx.mdx2
7 files changed, 7 insertions, 7 deletions
diff --git a/examples/blog/src/content/blog/markdown-style-guide.md b/examples/blog/src/content/blog/markdown-style-guide.md
index cf02c4198..fd3de1e88 100644
--- a/examples/blog/src/content/blog/markdown-style-guide.md
+++ b/examples/blog/src/content/blog/markdown-style-guide.md
@@ -1,7 +1,7 @@
---
title: 'Markdown Style Guide'
description: 'Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro.'
-pubDate: 'Jul 01 2022'
+pubDate: 'Jun 19 2024'
heroImage: '/blog-placeholder-1.jpg'
---
diff --git a/examples/blog/src/content/blog/using-mdx.mdx b/examples/blog/src/content/blog/using-mdx.mdx
index d976693e7..81603de4c 100644
--- a/examples/blog/src/content/blog/using-mdx.mdx
+++ b/examples/blog/src/content/blog/using-mdx.mdx
@@ -1,7 +1,7 @@
---
title: 'Using MDX'
description: 'Lorem ipsum dolor sit amet'
-pubDate: 'Jul 02 2022'
+pubDate: 'Jun 01 2024'
heroImage: '/blog-placeholder-5.jpg'
---
diff --git a/examples/blog/src/pages/blog/index.astro b/examples/blog/src/pages/blog/index.astro
index ebbcd3042..5dfb9c9c6 100644
--- a/examples/blog/src/pages/blog/index.astro
+++ b/examples/blog/src/pages/blog/index.astro
@@ -7,7 +7,7 @@ import { getCollection } from 'astro:content';
import FormattedDate from '../../components/FormattedDate.astro';
const posts = (await getCollection('blog')).sort(
- (a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()
+ (a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()
);
---
diff --git a/packages/astro/e2e/fixtures/actions-blog/src/pages/blog/index.astro b/packages/astro/e2e/fixtures/actions-blog/src/pages/blog/index.astro
index ebbcd3042..5dfb9c9c6 100644
--- a/packages/astro/e2e/fixtures/actions-blog/src/pages/blog/index.astro
+++ b/packages/astro/e2e/fixtures/actions-blog/src/pages/blog/index.astro
@@ -7,7 +7,7 @@ import { getCollection } from 'astro:content';
import FormattedDate from '../../components/FormattedDate.astro';
const posts = (await getCollection('blog')).sort(
- (a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()
+ (a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()
);
---
diff --git a/packages/astro/e2e/fixtures/actions-react-19/src/pages/blog/index.astro b/packages/astro/e2e/fixtures/actions-react-19/src/pages/blog/index.astro
index ebbcd3042..5dfb9c9c6 100644
--- a/packages/astro/e2e/fixtures/actions-react-19/src/pages/blog/index.astro
+++ b/packages/astro/e2e/fixtures/actions-react-19/src/pages/blog/index.astro
@@ -7,7 +7,7 @@ import { getCollection } from 'astro:content';
import FormattedDate from '../../components/FormattedDate.astro';
const posts = (await getCollection('blog')).sort(
- (a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf()
+ (a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()
);
---
diff --git a/packages/astro/test/fixtures/content-ssr-integration/src/content/blog/using-mdx.mdx b/packages/astro/test/fixtures/content-ssr-integration/src/content/blog/using-mdx.mdx
index 036209d3b..f11553129 100644
--- a/packages/astro/test/fixtures/content-ssr-integration/src/content/blog/using-mdx.mdx
+++ b/packages/astro/test/fixtures/content-ssr-integration/src/content/blog/using-mdx.mdx
@@ -1,7 +1,7 @@
---
title: 'Using MDX'
description: 'Lorem ipsum dolor sit amet'
-pubDate: 'Jul 02 2022'
+pubDate: 'Jun 01 2024'
heroImage: '/placeholder-hero.jpg'
---
diff --git a/packages/astro/test/fixtures/content-static-paths-integration/src/content/blog/using-mdx.mdx b/packages/astro/test/fixtures/content-static-paths-integration/src/content/blog/using-mdx.mdx
index 036209d3b..f11553129 100644
--- a/packages/astro/test/fixtures/content-static-paths-integration/src/content/blog/using-mdx.mdx
+++ b/packages/astro/test/fixtures/content-static-paths-integration/src/content/blog/using-mdx.mdx
@@ -1,7 +1,7 @@
---
title: 'Using MDX'
description: 'Lorem ipsum dolor sit amet'
-pubDate: 'Jul 02 2022'
+pubDate: 'Jun 01 2024'
heroImage: '/placeholder-hero.jpg'
---