-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open
Description
Context
I'm setting up the blog plugin to work how I want it to. For example, "scheduled" blog posts should always be marked as drafts by default. But this isn't quite working the way it should, based on how the official documentation describes how it should work, at least.
Bug description
While draft_if_future_date
is set to true
in the blog plugin, the build always seems to fail with the error TypeError: can't compare datetime.datetime to datetime.date
.
Related links
Reproduction
Steps to reproduce
- Setup the blog plugin following the official documentation
- Set the
draft_if_future_date
property totrue
- Build the site using
mkdocs build
(with the info plugin disabled, of course)
Browser
No response
Before submitting
- I have read and followed the bug reporting guidelines.
- I have attached links to the documentation, and possibly related issues and discussions.
- I assure that I have removed all customizations before submitting this bug report.
- I have attached a .zip file with a minimal reproduction.
Metadata
Metadata
Assignees
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open