danielcgilibert / blog-template

📚 Openblog is an elegant, simple, and user-friendly blog. Focused on accessibility, SEO and performance.
https://blog-template-gray.vercel.app
GNU General Public License v3.0
658 stars 235 forks source link

fix: Exclude drafts for categories and tags #88

Closed cameroncf closed 2 months ago

cameroncf commented 2 months ago

Expected Behavior: Tags and categories only used in drafts should not display in dev or prod output.

Observed Behavior: Tags and categories only used in drafts were showing up and producing empty summary pages such as /category/foo/1 and /tags/bar.


This change eliminates drafts from impacting all public facing outputs.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blog-template ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 30, 2024 3:48pm
danielcgilibert commented 2 months ago

Thank you!