added blog entry

This commit is contained in:
2026-01-29 16:42:08 +01:00
parent 75674c4992
commit e98c77895a
7 changed files with 76 additions and 17 deletions

View File

@@ -6,17 +6,19 @@ export async function load({ params }) {
const tag: string = `${params.year}/${params.date}`;
const postValues = posts.get(tag);
const content = post.default;
const title: string = postValues?.fullTitle ?? "";
const title: string = postValues?.title ?? "";
const date: string = postValues?.date ?? "";
// const bannerAlt: string = postValues?.bannerAlt ?? "";
const time: string = postValues?.time ?? "";
const banner: string = (postValues?.banner === "" ? "preview.webp" : postValues?.banner)!;
const description: string = postValues?.description ?? "";
return {
content,
title,
banner,
date,
time,
tag,
// bannerAlt,
description,
};
}