mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-04 12:00:02 +00:00
Check that tags exists
This commit is contained in:
parent
93f590cff7
commit
548d04ce8c
@ -186,7 +186,7 @@ module.exports = function (eleventyConfig) {
|
||||
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.noteIcon) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user