getpelican / pelican

Static site generator that supports Markdown and reST syntax. Powered by Python.

Home Page:https://getpelican.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong warning WITH_FUTURE_DATES

fornib opened this issue · comments

commented
  • I have read the Filing Issues and subsequent “How to Get Help” sections of the documentation.
  • I have searched the issues (including closed ones) and believe that this is not a duplicate.

Issue

When setting WITH_FUTURE_DATES = True (default) and CONTENT_CACHING_LAYER = 'generator', I get the following warning:
WITH_FUTURE_DATES conflicts with CONTENT_CACHING_LAYER set to 'generator', use 'reader' layer instead".
But the documentation says that it should conflicts only when WITH_FUTURE_DATES = False.

I believe the fix is to change file settings.py line 585 into:

not settings.get('WITH_FUTURE_DATES', True):

Sounds right. Would you like to make a PR for it?