-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Enhancement: Set a 'required' parameter for a frontmatter field that will annoy editors until it is defined. #369
Comments
@estruyf I was asked about this today and wanted to see what you thought about it. |
Hi @bwklein, sorry for the delay. I am just back from vacation, so I need to get up to speed with all the things I missed. |
@estruyf no worries, I was hoping that you were off doing something fun and relaxing this summer. :D |
This is now available for testing. Configuration
|
This is excellent! Thank you. |
Changed setting to |
Is your feature request related to a problem? Please describe.
Some fields need to be filled in for the site design to work as intended and for SEO.
Describe the solution you'd like
Set a parameter
required: true
on a content type field, that will first highlight the field red when not filled out, and then raise a warning on save until the field is filled out. Basically, be annoying to the editor until the requirements are satisfied.Describe alternatives you've considered
Telling people to remember to fill it out, checklists, pre-build script to check all files for required fields. It would be better to have some information in the UI at the time of editing, instead of after the files are saved, committed to the repo.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: