Add initial TinaCMS

This commit is contained in:
Cassidy Williams
2023-10-20 16:47:08 -05:00
parent 4b7488fcaf
commit 875fa394b2
8 changed files with 17322 additions and 741 deletions

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);
}
});