|
|
@ -8,7 +8,6 @@ export interface Post {
|
|
|
|
date: Date,
|
|
|
|
date: Date,
|
|
|
|
title: string,
|
|
|
|
title: string,
|
|
|
|
subtitle?: string,
|
|
|
|
subtitle?: string,
|
|
|
|
author: string,
|
|
|
|
|
|
|
|
body: string,
|
|
|
|
body: string,
|
|
|
|
unlisted: boolean,
|
|
|
|
unlisted: boolean,
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -55,7 +54,6 @@ export async function loadSinglePage(slug: string): Promise<Post | null> {
|
|
|
|
date: new Date(postMatch.groups.date),
|
|
|
|
date: new Date(postMatch.groups.date),
|
|
|
|
title: data.title,
|
|
|
|
title: data.title,
|
|
|
|
subtitle: data.subtitle,
|
|
|
|
subtitle: data.subtitle,
|
|
|
|
author: data.author,
|
|
|
|
|
|
|
|
unlisted: data.unlisted === 'true',
|
|
|
|
unlisted: data.unlisted === 'true',
|
|
|
|
body
|
|
|
|
body
|
|
|
|
}
|
|
|
|
}
|
|
|
|