diff options
| author | Leo Goetz <dev@leogtz.de> | 2026-05-08 15:37:39 +0200 |
|---|---|---|
| committer | Leo Goetz <dev@leogtz.de> | 2026-05-08 15:37:39 +0200 |
| commit | d4f98e2d1f85fbdffa2470071e22bba2dacc00c0 (patch) | |
| tree | 02aff46bd5791d1eddca4432f89bc44945b8b033 /src/pages/blog.astro | |
Diffstat (limited to 'src/pages/blog.astro')
| -rw-r--r-- | src/pages/blog.astro | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/pages/blog.astro b/src/pages/blog.astro new file mode 100644 index 0000000..4df4e5c --- /dev/null +++ b/src/pages/blog.astro @@ -0,0 +1,14 @@ +--- +import Layout from "../layouts/Layout.astro"; +import BlogPost from "../components/BlogPost.astro"; +const allPosts = Object.values( + import.meta.glob("./posts/*.md", { eager: true }), +); +const sortedPosts = allPosts.toSorted((a: any, b: any) => { + return Date.parse(b.frontmatter.date) - Date.parse(a.frontmatter.date); +}); +--- + +<Layout> + <p>Derzeit keine Posts, schau vielleicht später vorbei :)</p> +</Layout> |
