aboutsummaryrefslogtreecommitdiff
path: root/pages/post
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-12 11:50:37 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-12 11:50:37 +0200
commitffa1533a191bf09ea5934e8821de7d26275f8521 (patch)
treea3cbf697efae2a38b4a90c523cd4e2cba64555ce /pages/post
parentf0e25c71e148758a76ee8d4807aa1262f25edc5d (diff)
added recent posts to home page
Diffstat (limited to 'pages/post')
-rw-r--r--pages/post/[id].tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/pages/post/[id].tsx b/pages/post/[id].tsx
index c0d4e9d..eed1429 100644
--- a/pages/post/[id].tsx
+++ b/pages/post/[id].tsx
@@ -18,6 +18,7 @@ export interface ArticleMeta {
tags?: Array<string>;
date?: string;
chapters?: Array<chapter>;
+ cover?: string;
id?: string;
}
@@ -78,6 +79,7 @@ var parseTag = {
'title': (val: string) => val,
'subtitle': (val: string) => val,
'author': (val: string) => val,
+ 'cover': (val: string) => val,
'tags': (val: string) => val.split(',').map(i => i.trim()),
'date': (val: string) => new Date(val).toDateString(),
};