added blog entry
This commit is contained in:
@@ -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 />
|
||||
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user