Add a function to get all photo albums

This commit is contained in:
Quinn Hegeman
2026-03-08 17:24:39 +01:00
parent 44437c766b
commit ad73ab5672
6 changed files with 166 additions and 2 deletions

View File

@@ -1,10 +1,12 @@
---
import { getAllBlogs } from "@/content/blogs/blogs";
import { getAllAlbums } from "@/content/photos/albums";
import { getSettings } from "@/content/settings/settings"
import WebpageLayout from "@/layouts/WebpageLayout.astro";
const settings = await getSettings();
const blogs = await getAllBlogs(settings);
const albums = await getAllAlbums(settings);
console.log(albums);
---
<WebpageLayout>