more typescript stuff and new post

This commit is contained in:
2024-02-21 20:26:19 -05:00
parent b4fd4e3403
commit d1bd9388fc
9 changed files with 117 additions and 52 deletions
+24
View File
@@ -0,0 +1,24 @@
import { Tag } from 'src/types';
const renderFile = (
title: string,
date: string,
tags: string[],
md: string
) => `
---
title: ${title}
pubDate: ${date}
tags: ['${tags.join("', '")}']
---
${md}
`;
const newPost = () => {
const tagArr = Object.values(Tag);
console.log(tagArr);
};
newPost();