mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-04 12:00:02 +00:00
Check that tags exist before checking for entry
This commit is contained in:
parent
aa3f892116
commit
127e7adb5d
@ -53,7 +53,7 @@ function getPermalinkMeta(path, key) {
|
||||
if (frontMatter.data.permalink) {
|
||||
permalink = frontMatter.data.permalink;
|
||||
}
|
||||
if (frontMatter.data.tags.indexOf("gardenEntry") != -1) {
|
||||
if (frontMatter.data.tags && frontMatter.data.tags.indexOf("gardenEntry") != -1) {
|
||||
permalink = "/";
|
||||
}
|
||||
if (frontMatter.data.title) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user