[gimp-web/testing] Set WITH_FUTURE_DATES = False
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/testing] Set WITH_FUTURE_DATES = False
- Date: Mon, 4 Jul 2016 03:37:48 +0000 (UTC)
commit 4b8880a0c4917821453860d94aea95ed80d945dc
Author: Pat David <patdavid gmail com>
Date: Sun Jul 3 22:35:11 2016 -0500
Set WITH_FUTURE_DATES = False
This option will allow news posts to be dated
in the future. Prior to their `Date` metadata
they will also have `Status: draft` set.
Once past that date, the post will be published
as usual.
pelicanconf.local.py | 5 +++++
pelicanconf.py | 5 +++++
pelicanconf.testing.py | 5 +++++
3 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/pelicanconf.local.py b/pelicanconf.local.py
index d831dbc..4c2e626 100644
--- a/pelicanconf.local.py
+++ b/pelicanconf.local.py
@@ -41,6 +41,11 @@ TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
DEFAULT_DATE_FORMAT = "%Y-%m-%d"
+# Allow dating news posts in the future
+# before then, they will automatically have
+# Status: draft set
+WITH_FUTURE_DATES = False
+
# Feed generation is usually not desired when developing
#FEED_DOMAIN = SITEURL
#FEED_ATOM = 'feeds/atom.xml'
diff --git a/pelicanconf.py b/pelicanconf.py
index b2d53c7..8bc0185 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -41,6 +41,11 @@ TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
DEFAULT_DATE_FORMAT = "%Y-%m-%d"
+# Allow dating news posts in the future
+# before then, they will automatically have
+# Status: draft set
+WITH_FUTURE_DATES = False
+
# Feed generation is usually not desired when developing
FEED_DOMAIN = SITEURL
FEED_ATOM = 'feeds/atom.xml'
diff --git a/pelicanconf.testing.py b/pelicanconf.testing.py
index 1139efc..21c9977 100644
--- a/pelicanconf.testing.py
+++ b/pelicanconf.testing.py
@@ -41,6 +41,11 @@ TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
DEFAULT_DATE_FORMAT = "%Y-%m-%d"
+# Allow dating news posts in the future
+# before then, they will automatically have
+# Status: draft set
+WITH_FUTURE_DATES = False
+
# Feed generation is usually not desired when developing
FEED_DOMAIN = SITEURL
FEED_ATOM = 'feeds/atom.xml'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]