Add albums to the project
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user