hastiers in one line was too optimistic because the crust doesn't have

has_ line
This commit is contained in:
Marcell Mars 2021-04-15 01:10:20 +02:00
parent eb3e4b62d6
commit 1f34c9019b
1 changed files with 4 additions and 1 deletions

View File

@ -186,7 +186,10 @@
v = v.substring(1)
}
path = repo.path;
couldhave = METASP[Object.keys(repo.frontmatter).filter(t => t.startsWith("has_"))[0].split("has_")[1]].tiers
let hastiers = Object.keys(repo.frontmatter).filter(t => t.startsWith("has_"))
if (hastiers.length == 1) {
couldhave = METASP[hastiers[0].split("has_")[1]].tiers
}
console.log(JSON.stringify(repo))
generateFrontMatter(repo.frontmatter, path, repo.relpermalink, document.location.protocol.substring(0,4))
}