Commit d68a826b authored by David Bühler's avatar David Bühler
Browse files

Calendar: sorts events by reversed date and do not strip nor truncate the description.

parent dbd23b52
......@@ -43,6 +43,7 @@ collections:
output: true
events:
output: false
sort_by: date
fc-versions:
output: true
sort_by: number
......
......@@ -384,7 +384,7 @@ title: Frama-C
<div id="event_detail_swiper" class="eventDetailsBlock swiper-container">
<div class="swiper-wrapper">
{% for event in site.events %}
{% for event in site.events reversed %}
<div class="swiper-slide">
<div class="eventDetail" id="post_details_486">
<figure>
......@@ -397,8 +397,7 @@ title: Frama-C
<div>
<h3>{{ event.title }}</h3>
<p>{{ event.content | strip_html | truncatewords: 50 }}</p><a class="read-more link" href=
"{{ event.url }}" target="_blank">Read More</a>
<p>{{ event.content }}</p>
</div>
</div>
</div>
......@@ -415,7 +414,7 @@ title: Frama-C
<div id="event_calender_swiper" class="swiper-container">
<div class="swiper-wrapper">
{% for event in site.events %}
{% for event in site.events reversed %}
<div class="swiper-slide">
<a role="button" class="eventLink"><time>{{ event.date | date: "<b>%-d</b><small>%B</small>" }}</time><span>{{ event.title }}</span></a>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment