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

feature: exclude items based on frontmatter #10

Open
davidsneighbour opened this issue Oct 2, 2024 · 0 comments
Open

feature: exclude items based on frontmatter #10

davidsneighbour opened this issue Oct 2, 2024 · 0 comments

Comments

@davidsneighbour
Copy link

Many SSG use a draft field in frontmatter to hide content from publishing. I don't see a way to exclude these items currently from the API index. Something like the following maybe:

global:
  exclude_key_bool: draft
  exclude_key: draft

If we talk about GoHugo then the draft field is a boolean. Other systems might introduce some form of publishing vocabulary like status: draft/review/published that would need specific value/enum configuration.

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