From aad887cf500dcd1097cb950d77d41900cc81a730 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Thu, 14 Apr 2016 02:42:50 +0200 Subject: [PATCH] [fix] show_date default value wasn't transmitted to templates --- prosopopee/prosopopee.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index 50ff487..a7fc488 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -101,6 +101,9 @@ def main(): if settings.get("settings", {}).get("gm"): SETTINGS["gm"].update(settings["settings"]["gm"]) + if not "show_date" in settings: + settings["show_date"] = SETTINGS["show_date"] + front_page_galleries_cover = [] dirs = filter(lambda x: x not in (".", "..") and os.path.isdir(x) and os.path.exists(os.path.join(os.getcwd(), x, "settings.yaml")), os.listdir(os.getcwd()))