Add page routing and content fetchers

This commit is contained in:
itsfinniii
2026-03-15 18:55:30 +01:00
parent bc11be5669
commit 21d5ba23a4
22 changed files with 923 additions and 9 deletions

View File

@@ -1,12 +1,14 @@
---
import { getAllWebpages } from "@/content/pages/pages";
import { getAllRoutesList } from "@/lib/routing";
import { getPage } from "@/lib/pages";
import { getSettings } from "@/content/settings/settings"
import WebpageLayout from "@/layouts/WebpageLayout.astro";
const settings = await getSettings();
const routes = await getAllRoutesList(settings);
console.log(routes);
const page = await getPage(settings, "/album/2026/mirai-nexus-2026/6c0e4453ab");
console.log(page);
---
<WebpageLayout>