Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Support drafts and scheduling blog posts #2441

Open

Description

@emmadesilva
No description provided.

Activity

  1. emmadesilva commented on Jun 24, 2026

    @emmadesilva
    MemberAuthor

    Closing this as not planned. This was previously explored in #2001, and after further consideration the conclusion holds.

    The core problem with scheduling in a static site generator is that Hyde cannot deliver on the implicit promise. "Scheduling" implies temporal automation — the post goes live at the specified time. But in Hyde, the build is the publish event. A future date in front matter only means something if a build happens to run at or after that moment, which is not guaranteed. Users who don't have nightly CI (most of them) would write a scheduled post, see nothing happen, and reasonably consider it a bug.

    For drafts, the underscore prefix convention already covers this cleanly. A file prefixed with _ is ignored during discovery — no build output, no sitemap entry, no listing appearance. That's the Hyde-native draft mechanism and it composes well with everything else.

    For suppressing future-dated posts, there's a userland Blade approach that's honest about what it does:

    @foreach(MarkdownPost::getLatestPosts() as $post)
        @unless($post->date !== null && $post->date->toDateTime() > now())
            @include('hyde::components.article-excerpt')
        @endunless
    @endforeach

    This is transparent about the contract: the post is excluded from the feed on builds that run before the date, but there's no guarantee of when that build runs. Worth documenting, but not a framework feature.

    Scheduling as a reliable, deliverable feature — where a post actually goes live at a specific time — requires control over the build trigger, which is outside Hyde's scope as an SSG. That's a valid thing for external tooling or CI workflows (scheduled GitHub Actions, for example) to provide, not something Hyde core should paper over with front matter that only works correctly under specific infrastructure assumptions most users won't have.

  2. added a commit that references this issue on Jul 30, 2026
    feb9828
  3. emmadesilva commented on Jul 31, 2026

    @emmadesilva
    MemberAuthor

    Future dates implemented in v3 #2571 (drafts coming in an upcomping PR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions