Add albums to the project

This commit is contained in:
itsfinniii
2026-04-25 15:04:47 +02:00
parent 1fde3d4f69
commit abaea70c7b
3 changed files with 29 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ import ProjectPost from "@/components/projects/ProjectPost.astro";
import CategoryIndex from "@/components/photos/CategoryIndex.astro";
import Category from "@/components/photos/Category.astro";
import { getImageUrl } from "@/lib/images";
import AlbumPage from "@/components/photos/AlbumPage.astro";
export async function getStaticPaths() {
const settings = await getSettings();
@@ -144,6 +145,22 @@ if (page === null || page.page === null || !page.page.exists) {
</WebpageLayout>
) }
{ page.pageType === "PhotoAlbum" && (
<WebpageLayout settings={{
searchEngine: {
title: page.page.category.title,
description: `See the photos in the ${page.page.category.title.toLowerCase()} category.`,
allowCrawlers: true,
canonical: null,
priority: 65,
thumbnail: page.page.category.thumbnail
}}}>
<Fragment slot="content">
<AlbumPage album={page.page} />
</Fragment>
</WebpageLayout>
) }
{ page.pageType === "Photo" && (
<PhotoLayout settings={{
searchEngine: {