Add initial TinaCMS

This commit is contained in:
Cassidy Williams committed 2023-10-20 16:47:08 -05:00
1 parent 4b7488fcaf
commit 875fa394b2
8 files changed
+17322 -741

No files matched your search

+2 -2
View File
@@ -5,9 +5,9 @@ export default function getTags(posts) {
const postTags = post.frontmatter.tags;
let allTags = [];
if (postTags.length > 0) {
if (postTags?.length > 0) {
postTags.forEach((tag) => {
if (allTags.indexOf(tag) === -1) {
if (allTags?.indexOf(tag) === -1) {
allTags.push(tag);
}
});