mirror of
https://github.com/Xevion/undefined.behavio.rs.git
synced 2025-12-17 18:13:45 -06:00
Separate default body contents into General layout, keep Base
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
---
|
||||
import { getCollection } from "astro:content";
|
||||
import Base from "@layouts/Base.astro";
|
||||
import General from "@layouts/General.astro";
|
||||
import Summary from "@components/Summary.astro";
|
||||
const posts = await getCollection("blog");
|
||||
posts.sort((a, b) => new Date(b.data.pubDate).getTime() - new Date(a.data.pubDate).getTime());
|
||||
---
|
||||
|
||||
<Base>
|
||||
<General>
|
||||
{
|
||||
posts.map((post) => (
|
||||
<Summary
|
||||
|
||||
Reference in New Issue
Block a user