Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontmatter - setting "draft" to "first" #285

Open
hellquist opened this issue Mar 16, 2024 · 0 comments
Open

Frontmatter - setting "draft" to "first" #285

hellquist opened this issue Mar 16, 2024 · 0 comments

Comments

@hellquist
Copy link

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

image

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant