First, thank you for all your work with Frontmatter. Frontmatter makes maintaining static websites so much easier.
Have you considered an option, so empty fields in Snippets are not inserted, like a global "Do not insert if empty" options within Snippets, or maybe even a similar option pr. Snippet?
Thanks
--Jesper
First, thank you for all your work with Frontmatter. Frontmatter makes maintaining static websites so much easier.
Have you considered an option, so empty fields in Snippets are not inserted, like a global "Do not insert if empty" options within Snippets, or maybe even a similar option pr. Snippet?
Thanks
--Jesper
<!-- github-sync-id:3374990244 -->
Snippets make use of Mustach JS so that you can use statements like: [[#title]]title=\"[[&title]]\"[[/title]] to only include a value if it is not empty. That should be a solution to your issue.
Hi @dotjesper,
Thank you for the feedback 🙏.
Snippets make use of Mustach JS so that you can use statements like: `[[#title]]title=\"[[&title]]\"[[/title]]` to only include a value if it is not empty. That should be a solution to your issue.
<!-- github-comment-id:3244457217 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
First, thank you for all your work with Frontmatter. Frontmatter makes maintaining static websites so much easier.
Have you considered an option, so empty fields in Snippets are not inserted, like a global "Do not insert if empty" options within Snippets, or maybe even a similar option pr. Snippet?
Thanks
--Jesper
Hi @dotjesper,
Thank you for the feedback 🙏.
Snippets make use of Mustach JS so that you can use statements like:
[[#title]]title=\"[[&title]]\"[[/title]]to only include a value if it is not empty. That should be a solution to your issue.Awesome, I will try that out - thanks
--Jesper
Works perfect - thanks!
Thanks for the update! 💛