Skip to content

Commit

Permalink
Check that tags exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole Eskild Steensen committed Mar 7, 2023
1 parent 93f590c commit 548d04c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 548d04c

Please sign in to comment.