mirror of
https://github.com/xHyroM/website.git
synced 2024-11-14 03:28:07 +01:00
fix(pages-blog): use date instead of pubDate
This commit is contained in:
parent
8906fda27a
commit
64057f3ae2
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ import Navbar from "../../components/widgets/Navbar.astro";
|
||||||
import Container from "../../components/atoms/Container.astro";
|
import Container from "../../components/atoms/Container.astro";
|
||||||
|
|
||||||
const posts = (await Astro.glob('./posts/*.md')).sort(
|
const posts = (await Astro.glob('./posts/*.md')).sort(
|
||||||
(a, b) => new Date(b.frontmatter.pubDate).valueOf() - new Date(a.frontmatter.pubDate).valueOf()
|
(a, b) => new Date(b.frontmatter.date).valueOf() - new Date(a.frontmatter.date).valueOf()
|
||||||
);
|
);
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue