added blog entry
This commit is contained in:
@@ -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