diff options
author | Christian Franke <nobody@nowhere.ws> | 2016-04-05 15:56:31 -0300 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2016-04-05 15:56:31 -0300 |
commit | 1a1af084931f8e056e951389ca0c414401ba7b94 (patch) | |
tree | 9aef9c4888a8a73168b66d6441f20ec477fd350b /scripts | |
parent | f1f4193f8b8607084c0ac56a7ecffe2b56e8a68e (diff) |
Show one weeks worth of events on landing page
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/calendar_plugin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/calendar_plugin.py b/scripts/calendar_plugin.py index af7408b..c277a9f 100644 --- a/scripts/calendar_plugin.py +++ b/scripts/calendar_plugin.py @@ -31,7 +31,8 @@ class CalendarPlugin: def _get_calendar_head(self): return self.template_env.get_template('calendar_head.j2').render({ 'events': self.events, - 'class': 'calendar-head' + 'class': 'calendar-head', + 'cutoff': datetime.now() + timedelta(days=7) }).encode('utf-8') def process_content(self, page_content): |