You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Thanks for reporting and for the excellent reproduction. Fixed in bd010db. Might be a regression, as this worked before. I made sure that it now works with date, as well as datetime values, e.g.:
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 totrue
in the blog plugin, the build always seems to fail with the errorTypeError: can't compare datetime.datetime to datetime.date
.Related links
Reproduction
example.zip
Steps to reproduce
draft_if_future_date
property totrue
mkdocs build
(with the info plugin disabled, of course)Browser
No response
Before submitting
The text was updated successfully, but these errors were encountered: