We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb7d35e commit 17ba5ddCopy full SHA for 17ba5dd
utils/getPostMetadata.ts
@@ -18,7 +18,7 @@ const getPostMetadata = (getDrafts: boolean = false): PostMetadata[] => {
18
return {
19
title: matterResult.data.title,
20
date: matterResult.data.date,
21
- tags: matterResult.data.tags,
+ tags: matterResult.data.tags || '',
22
wordcount: (matterResult.content.match(/\b\w+\b/gu) || []).length,
23
slug: fileName.replace('.md', ''),
24
};
0 commit comments