Fix thumbnail for Photo

This commit is contained in:
itsfinniii
2026-04-05 22:23:31 +02:00
parent f95f792775
commit b73066352e
5 changed files with 30 additions and 10 deletions

View File

@@ -12,6 +12,7 @@ import BlogPost from "@/components/blogs/BlogPost.astro";
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";
export async function getStaticPaths() {
const settings = await getSettings();
@@ -145,19 +146,19 @@ if (page === null || page.page === null || !page.page.exists) {
{ page.pageType === "Photo" && (
<WebpageLayout settings={{
searchEngine: {
title: "Projects",
description: "",
title: page.page.album.title,
description: `See this photo from the album ${page.page.album.title}`,
allowCrawlers: true,
canonical: null,
priority: 65,
thumbnail: {
url: "",
width: 1200,
height: 630
url: getImageUrl(page.page.photo.url),
width: page.page.photo.width,
height: page.page.photo.height
}
}}}>
<Fragment slot="content">
<div>{page.page.id}</div>
<div>{JSON.stringify(page.page)}</div>
</Fragment>
</WebpageLayout>
) }