Frontmatter - setting "draft" to "first"
Hi! Thanks for an awesome theme! Really cool.
I'm running the latest version. When I'm reading the docs regarding setting modDatetime it says I should set draft: in my frontmatter to draft: first, and that it will trigger the magic
if [ "$draft" = "first" ]; then
However, when I do that I get this error message
Am I missing a step somewhere? Draft is defined as a boolean (i.e. true/false) and anything else will generate that schema error.
I have literally copied/pasted the suggested commands on that page, and everything else with the theme in general seems to be working perfectly fine, so I'm guessing this could be user error on my part, I'm just not sure what part I might have missed.
The one thing I have assumed is a typo I haven't done though, on your blog post/doc it says:
Navigating to the hooks/pre-commit file, we are going to add one or both of the following snippets. I have assumed you mean .husky/pre-commit, as that was the file in the previous instruction. That file btw did have some content before adding snippet from your blog post:
1 #!/usr/bin/env sh
2 . "$(dirname -- "$0")/_/husky.sh"
3
4 npx lint-staged
I have pasted your snippets after that...is that correct?
Hello @hellquist Sorry for the late reply. Have you resolved the issue? Please let me know.
I'm not 100% sure if this is the case.
But by looking at the screenshot error you provided, it's likely to be the problem in ContentCollection validation.
---
author: Sat Naing
# others
draft: "false" # instead of (draft: false)
# others
---