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

@@ -9,14 +9,15 @@
<svelte:head>
<title>{data.title} | denizk0461</title>
<meta name="description" content="{data.description}">
<meta name="DCTERMS.created" content="{data.date}T{data.time}">
</svelte:head>
<Content>
<Banner2
title="{data.title}"
date="{data.date}"
banner="preview.webp"
bannerAlt="{""/*data.bannerAlt*/}" />
date="{data.date}, {data.time}"
banner="{data.banner}"
bannerAlt="Banner for blog post '{data.title}'" />
<TableOfContents />

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,
};
}