diff options
Diffstat (limited to 'pages/post')
-rw-r--r-- | pages/post/[id].tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pages/post/[id].tsx b/pages/post/[id].tsx index f70b21f..4f3050a 100644 --- a/pages/post/[id].tsx +++ b/pages/post/[id].tsx @@ -12,6 +12,7 @@ interface ArticleMeta { title?: string; subtitle?: string; author?: string; + tags?: Array<string>; date?: string; chapters?: Array<chapter>; } @@ -48,6 +49,7 @@ var parseTag = { "title": (val: string) => val, "subtitle": (val: string) => val, "author": (val: string) => val, + "tags": (val: string) => val.split(",").map(i => i.trim()), "date": (val: string) => new Date(val).toDateString(), } |