past events are now automagically grayed-out
This commit is contained in:
parent
04c8d25ac2
commit
7a0d3dddfd
@ -30,7 +30,7 @@ DEFAULT_PAGINATION = 25
|
|||||||
|
|
||||||
# Uncomment following line if you want document-relative URLs when developing
|
# Uncomment following line if you want document-relative URLs when developing
|
||||||
PLUGIN_PATHS = ['./plugins', './plugins-custom']
|
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']
|
MD_EXTENSIONS = ['codehilite','extra','toc']
|
||||||
|
|
||||||
STATIC_PATHS = ['extra/favicon.ico', 'images', 'pdfs']
|
STATIC_PATHS = ['extra/favicon.ico', 'images', 'pdfs']
|
||||||
@ -61,3 +61,5 @@ PLUGIN_EVENTS = {
|
|||||||
'default_location' : '',
|
'default_location' : '',
|
||||||
'calendar_per_category': True
|
'calendar_per_category': True
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DATEISH_PROPERTIES = ['event_start', 'event_end']
|
||||||
|
@ -171,6 +171,9 @@ pre{
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
margin:0 0 1em 0;
|
margin:0 0 1em 0;
|
||||||
}
|
}
|
||||||
|
.long-read .hentry{
|
||||||
|
width:calc(400px + 2em);
|
||||||
|
}
|
||||||
.hentry{
|
.hentry{
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
@ -273,7 +276,7 @@ pre{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* add a monochrome filter over past events */
|
/* add a monochrome filter over past events */
|
||||||
.past-event{
|
.past-event img{
|
||||||
filter:opacity(0.1);
|
filter:opacity(0.1);
|
||||||
/*filter: url("/images/filter.svg#monochrome");
|
/*filter: url("/images/filter.svg#monochrome");
|
||||||
-webkit-filter: url("/images/filter.svg#monochrome");*/
|
-webkit-filter: url("/images/filter.svg#monochrome");*/
|
||||||
|
@ -8,16 +8,23 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<div id="post-list">
|
<div id="post-list">
|
||||||
{% for article in articles_page.object_list %}
|
{% for article in articles_page.object_list %}
|
||||||
<article class="hentry">
|
{% if article.category %}
|
||||||
|
<article class="hentry {{article.category}}">
|
||||||
|
{% endif %}
|
||||||
<div class="article-info">
|
<div class="article-info">
|
||||||
<span class="entry-title"><a href="{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></span>
|
<span class="entry-title"><a href="{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></span>
|
||||||
<div class="event-details">
|
<div class="event-details">
|
||||||
{% if article.event_start %}
|
{% if article.event_start %}
|
||||||
{{ article.event_start }}
|
{{ article.event_start }}
|
||||||
|
{% set past = '' %}
|
||||||
|
{% if article.event_start < article.date.now() %}
|
||||||
|
{% set past = ' past-event' %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="summary">{{ article.summary }}
|
<div class="summary {{past}}">{{ article.summary }}
|
||||||
<span>
|
<span>
|
||||||
<a href="{{ article.url }}">
|
<a href="{{ article.url }}">
|
||||||
{% if DEFAULT_LANG == 'en' %}
|
{% if DEFAULT_LANG == 'en' %}
|
||||||
|
Loading…
Reference in New Issue
Block a user