Skip to content

Commit 17ba5dd

Browse files
committed
fix empty tags
1 parent fb7d35e commit 17ba5dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/getPostMetadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const getPostMetadata = (getDrafts: boolean = false): PostMetadata[] => {
1818
return {
1919
title: matterResult.data.title,
2020
date: matterResult.data.date,
21-
tags: matterResult.data.tags,
21+
tags: matterResult.data.tags || '',
2222
wordcount: (matterResult.content.match(/\b\w+\b/gu) || []).length,
2323
slug: fileName.replace('.md', ''),
2424
};

0 commit comments

Comments
 (0)