hastiers in one line was too optimistic because the crust doesn't have
has_ line
This commit is contained in:
parent
eb3e4b62d6
commit
1f34c9019b
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue