-
Notifications
You must be signed in to change notification settings - Fork 712
Add support for hidden posts via hidden: true front matter parameter
#1094
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
Conversation
✅ Deploy Preview for toha-ci ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-authored-by: hossainemruz <12577390+hossainemruz@users.noreply.github.com>
Co-authored-by: hossainemruz <12577390+hossainemruz@users.noreply.github.com>
hidden: true front matter parameter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Device | URL |
|---|---|
| desktop | https://6913c19879613b0008096adf--toha-ci.netlify.app |
| Device | URL |
|---|---|
| mobile | https://6913c19879613b0008096adf--toha-ci.netlify.app |
| Device | URL |
|---|---|
| desktop | https://6913c19879613b0008096adf--toha-ci.netlify.app/posts/ |
| Device | URL |
|---|---|
| mobile | https://6913c19879613b0008096adf--toha-ci.netlify.app/posts/ |
| Device | URL |
|---|---|
| desktop | https://6913c19879613b0008096adf--toha-ci.netlify.app/posts/markdown-sample/ |
| Device | URL |
|---|---|
| mobile | https://6913c19879613b0008096adf--toha-ci.netlify.app/posts/markdown-sample/ |
| Device | URL |
|---|---|
| desktop | https://6913c19879613b0008096adf--toha-ci.netlify.app/posts/shortcodes/ |
| Device | URL |
|---|---|
| mobile | https://6913c19879613b0008096adf--toha-ci.netlify.app/posts/shortcodes/ |
Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Device | URL |
|---|---|
| desktop | https://6913c7427d81db000801d0ec--toha-ci.netlify.app |
| Device | URL |
|---|---|
| mobile | https://6913c7427d81db000801d0ec--toha-ci.netlify.app |
| Device | URL |
|---|---|
| desktop | https://6913c7427d81db000801d0ec--toha-ci.netlify.app/posts/ |
| Device | URL |
|---|---|
| mobile | https://6913c7427d81db000801d0ec--toha-ci.netlify.app/posts/ |
| Device | URL |
|---|---|
| desktop | https://6913c7427d81db000801d0ec--toha-ci.netlify.app/posts/markdown-sample/ |
| Device | URL |
|---|---|
| mobile | https://6913c7427d81db000801d0ec--toha-ci.netlify.app/posts/markdown-sample/ |
| Device | URL |
|---|---|
| desktop | https://6913c7427d81db000801d0ec--toha-ci.netlify.app/posts/shortcodes/ |
| Device | URL |
|---|---|
| mobile | https://6913c7427d81db000801d0ec--toha-ci.netlify.app/posts/shortcodes/ |
Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Device | URL |
|---|---|
| desktop | https://6913c7cb8b4f89000827da1d--toha-ci.netlify.app |
| Device | URL |
|---|---|
| mobile | https://6913c7cb8b4f89000827da1d--toha-ci.netlify.app |
| Device | URL |
|---|---|
| desktop | https://6913c7cb8b4f89000827da1d--toha-ci.netlify.app/posts/ |
| Device | URL |
|---|---|
| mobile | https://6913c7cb8b4f89000827da1d--toha-ci.netlify.app/posts/ |
| Device | URL |
|---|---|
| desktop | https://6913c7cb8b4f89000827da1d--toha-ci.netlify.app/posts/markdown-sample/ |
| Device | URL |
|---|---|
| mobile | https://6913c7cb8b4f89000827da1d--toha-ci.netlify.app/posts/markdown-sample/ |
| Device | URL |
|---|---|
| desktop | https://6913c7cb8b4f89000827da1d--toha-ci.netlify.app/posts/shortcodes/ |
| Device | URL |
|---|---|
| mobile | https://6913c7cb8b4f89000827da1d--toha-ci.netlify.app/posts/shortcodes/ |
Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead
Implements the ability to hide posts from listings while keeping them accessible via direct link. Users can now mark posts as hidden for use cases like Q&A content or draft sharing.
Implementation
Filters posts with
hidden: truefrom:layouts/_default/list.html)layouts/partials/sections/recent-posts.html)layouts/_default/index.json)layouts/_default/rss.xml)layouts/_default/sitemap.xml)Each location now applies
where $posts "Params.hidden" "!=" trueafter existing filters.Usage
The post remains accessible at its permalink but won't appear in any listing or feed. Added inline documentation to
archetypes/default.md.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.