You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to learn from this repository but it took me some time to spot what was happening.
When I changed the front matter data in the fithpost.md to `draft: "no bool" but to my surprise nothing happened.
I am trying to learn from this repository but it took me some time to spot what was happening.
When I changed the front matter data in the
fithpost.md
to `draft: "no bool" but to my surprise nothing happened.eleventy-base-blog/content/blog/fifthpost.md
Line 4 in 940e69d
So I decided to
console.log
data for eachpage
and the propertyeleventyDataSchema
was undefined.eleventy-base-blog/_data/eleventyDataSchema.js
Line 4 in 940e69d
then I logged
data
in the above file and found out it only runs once on this data structure and therefore can never trigger.Then I went to dig deeper in the docs and found out that this page, it should be set for each page e.g.
blog/blog.11tydata.js
.According to this page https://www.11ty.dev/docs/data-validate/
https://github.com/11ty/11ty-website/blob/508e420552742a7114eec1473802a6baa43e76d0/src/docs/data-validate.md?plain=1#L1
But none of that mattered because the enabled preprocessor disables the behaviour of the validator. (Explained in preprocessor docs page)
eleventy-base-blog/eleventy.config.js
Lines 10 to 16 in 940e69d
Summary of the problems
eleventyDataSchema.js
runs on a wrong input filedrafts
disables the validatorPossible fixes:
The text was updated successfully, but these errors were encountered: