From 7a0d3dddfdfe15018662e55b77b7f9afbdb281f9 Mon Sep 17 00:00:00 2001 From: rra Date: Thu, 1 Feb 2018 15:16:37 +0100 Subject: [PATCH] past events are now automagically grayed-out --- pelicanconf.py | 4 +++- themes/cetcat/static/css/main.css | 5 ++++- themes/cetcat/templates/index.html | 11 +++++++++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index f18e536..8c01077 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -30,7 +30,7 @@ DEFAULT_PAGINATION = 25 # Uncomment following line if you want document-relative URLs when developing PLUGIN_PATHS = ['./plugins', './plugins-custom'] -PLUGINS = ['extract_toc', 'i18n_subsites', 'summary', 'events_ics'] +PLUGINS = ['dateish','extract_toc', 'i18n_subsites', 'summary', 'events_ics'] MD_EXTENSIONS = ['codehilite','extra','toc'] STATIC_PATHS = ['extra/favicon.ico', 'images', 'pdfs'] @@ -61,3 +61,5 @@ PLUGIN_EVENTS = { 'default_location' : '', 'calendar_per_category': True } + +DATEISH_PROPERTIES = ['event_start', 'event_end'] diff --git a/themes/cetcat/static/css/main.css b/themes/cetcat/static/css/main.css index cdbbaad..ea446c7 100644 --- a/themes/cetcat/static/css/main.css +++ b/themes/cetcat/static/css/main.css @@ -171,6 +171,9 @@ pre{ width: 100%; margin:0 0 1em 0; } +.long-read .hentry{ + width:calc(400px + 2em); +} .hentry{ display: inline-block; width: 200px; @@ -273,7 +276,7 @@ pre{ } /* add a monochrome filter over past events */ -.past-event{ +.past-event img{ filter:opacity(0.1); /*filter: url("/images/filter.svg#monochrome"); -webkit-filter: url("/images/filter.svg#monochrome");*/ diff --git a/themes/cetcat/templates/index.html b/themes/cetcat/templates/index.html index 35632f9..99096bf 100644 --- a/themes/cetcat/templates/index.html +++ b/themes/cetcat/templates/index.html @@ -8,16 +8,23 @@ {% endif %}
{% for article in articles_page.object_list %} -
+ {% if article.category %} +
+ {% endif %} -
{{ article.summary }} +
{{ article.summary }} {% if DEFAULT_LANG == 'en' %}