Skip to content
Snippets Groups Projects
Commit e7b8039c authored by Uwe Jandt (DESY, HIFIS)'s avatar Uwe Jandt (DESY, HIFIS)
Browse files

events on frontpage

parent 9016acaf
No related branches found
No related tags found
5 merge requests!203WIP: Test MR,!177HIFIS unified step 1,!165Draft:Hifis unified V0.2,!128Added SCC logo and events,!127WIP:HIFIS Websites unification
......@@ -52,6 +52,35 @@
<a href="{{ 'news/' | relative_url }}" class="btn btn-outline-secondary">More HIFIS News</a>
</section>
</div>
<div class="frontpage-jumbotron">
<section>
<h1><i class="far fa-calendar-alt" aria-hidden="true"></i>&nbsp; Events</h1>
<div class="flex-content-wrapper">
{% assign sorted_events = site.events | sort: "start.date" %}
{% assign today = "now" | date: "%Y-%m-%d" %}
{% assign has_upcoming_events = false %}
{% for event in sorted_events %}
{% if event.start.date < today or
event.registration_period.to < today %}
{% continue %}
{% else %}
{% assign has_upcoming_events = true %}
{% endif %}
{% include frontpage/event-card.html
title = event.excerpt %}
{% endfor %}
{% if has_upcoming_events == false %}
<article class="list-entry">
<h1>
There are no upcoming events right now ... stay tuned.
</h1>
</article>
{% endif %}
</div>
</section>
</div>
<div class="transition-block">
{% include transition.html direction="top" %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment