main page shenanigans; added dateUpdate attribute to blog posts; updated banner to display them
This commit is contained in:
@@ -15,7 +15,8 @@
|
||||
<Content>
|
||||
<Banner2
|
||||
title="{data.title}"
|
||||
date="{data.date}, {data.time}"
|
||||
date="{data.date}"
|
||||
dateUpdated="{data.dateUpdated}"
|
||||
banner="{data.banner}"
|
||||
bannerAlt="Banner for blog post '{data.title}'" />
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ export async function load({ params }) {
|
||||
const content = post.default;
|
||||
const title: string = postValues?.title ?? "";
|
||||
const date: string = postValues?.date ?? "";
|
||||
const dateUpdated: string = postValues?.dateUpdated ?? "";
|
||||
const time: string = postValues?.time ?? "";
|
||||
const banner: string = postValues?.banner ?? "";
|
||||
const description: string = postValues?.description ?? "";
|
||||
@@ -17,6 +18,7 @@ export async function load({ params }) {
|
||||
title,
|
||||
banner,
|
||||
date,
|
||||
dateUpdated,
|
||||
time,
|
||||
tag,
|
||||
description,
|
||||
|
||||
Reference in New Issue
Block a user