Add page routing and content fetchers
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user