Conversation
Frontmatter status defaults to current. archive is the only other recognized value. Consumers can list with current() and archived() without changing all() or slug lookup. Co-authored-by: Eric Mwamodo <mwamodo@users.noreply.github.com>
Recognize status: draft alongside current and archive. Drafts appear in all(), drafts(), listed(), and findBySlug only when APP_ENV=local. Missing or unknown status still defaults to current; new posts should set draft. Co-authored-by: Eric Mwamodo <mwamodo@users.noreply.github.com>
- Introduces a `show_drafts` config flag so drafts can be forced on/off independent of `APP_ENV`, instead of always gating on `local`. - Caches the articles directory scan per repository instance to avoid redundant filesystem walks across repeated calls. - Refreshes the blog fixture content (Beacon 0.3.3-beta note, archived REST/MCP post) and OG images, with new tests covering the archive listing, OG image presence, and drafts scan caching.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Sync from Turbine (
platform/markdown-blog). Three commits onturbinesince the last merge:b33b93cAdd current/archive status to markdown-blog articles2998621Add local-only draft status to markdown-blogcc3c844Add per-environment control for markdown-blog draft visibilityWhat changes
status(current,archive,draft); unknown values are handled explicitlydraftarticles are local-only by default; visibility is now controlled per environment viaconfig/markdown-blog.phpArticleRepository,MarkdownBlog, the facade, and the service provider are updated to expose/filter by statusTests
tests/ArticleRepositoryTest.phpextended with new fixtures:archived-post,draft-post,unknown-status.🤖 Generated with Claude Code
https://claude.ai/code/session_01NwAY957w9p7RaAUNDkssiA