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: ...@@ -43,6 +43,7 @@ collections:
output: true output: true
events: events:
output: false output: false
sort_by: date
fc-versions: fc-versions:
output: true output: true
sort_by: number sort_by: number
......
...@@ -384,7 +384,7 @@ title: Frama-C ...@@ -384,7 +384,7 @@ title: Frama-C
<div id="event_detail_swiper" class="eventDetailsBlock swiper-container"> <div id="event_detail_swiper" class="eventDetailsBlock swiper-container">
<div class="swiper-wrapper"> <div class="swiper-wrapper">
{% for event in site.events %} {% for event in site.events reversed %}
<div class="swiper-slide"> <div class="swiper-slide">
<div class="eventDetail" id="post_details_486"> <div class="eventDetail" id="post_details_486">
<figure> <figure>
...@@ -397,8 +397,7 @@ title: Frama-C ...@@ -397,8 +397,7 @@ title: Frama-C
<div> <div>
<h3>{{ event.title }}</h3> <h3>{{ event.title }}</h3>
<p>{{ event.content | strip_html | truncatewords: 50 }}</p><a class="read-more link" href= <p>{{ event.content }}</p>
"{{ event.url }}" target="_blank">Read More</a>
</div> </div>
</div> </div>
</div> </div>
...@@ -415,7 +414,7 @@ title: Frama-C ...@@ -415,7 +414,7 @@ title: Frama-C
<div id="event_calender_swiper" class="swiper-container"> <div id="event_calender_swiper" class="swiper-container">
<div class="swiper-wrapper"> <div class="swiper-wrapper">
{% for event in site.events %} {% for event in site.events reversed %}
<div class="swiper-slide"> <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> <a role="button" class="eventLink"><time>{{ event.date | date: "<b>%-d</b><small>%B</small>" }}</time><span>{{ event.title }}</span></a>
</div> </div>
...@@ -471,4 +470,4 @@ title: Frama-C ...@@ -471,4 +470,4 @@ title: Frama-C
<div class="clear"></div> <div class="clear"></div>
</div> </div>
</div> </div>
<body> <body>
\ No newline at end of file
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