added structure for blog posts
This commit is contained in:
29
src/routes/blog/posts.ts
Normal file
29
src/routes/blog/posts.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
export interface BlogPostDetails {
|
||||
date: string;
|
||||
|
||||
/**
|
||||
* Short title to be used in URL.
|
||||
*/
|
||||
shortTitle: string;
|
||||
fullTitle: string;
|
||||
|
||||
/**
|
||||
* Description to be used in page's metadata.
|
||||
*/
|
||||
description: string;
|
||||
}
|
||||
|
||||
export const posts = new Map<string, BlogPostDetails>([
|
||||
["2026/0105", {
|
||||
date: "2026-01-05",
|
||||
shortTitle: "portsmouth",
|
||||
fullTitle: "Portsmouth Postmortem",
|
||||
description: "",
|
||||
}],
|
||||
]);
|
||||
|
||||
// export function getDate(post: BlogPostDetails): string {
|
||||
// var s = [post.year, post.date.split()].join("");
|
||||
// s.
|
||||
// return "";
|
||||
// }
|
||||
Reference in New Issue
Block a user