diff --git a/_layouts/frontpage.html b/_layouts/frontpage.html index bc0c39612a542fb616911d2f2ad345fa535aa6f9..44b25b5a4a0fc305327190f45f2c4fa67af8a4b1 100644 --- a/_layouts/frontpage.html +++ b/_layouts/frontpage.html @@ -11,82 +11,82 @@ {% endcapture %} {%- include title_image.html content=title-content -%} -<section> -<div class="info-col"> - <div class="frontpage-wide-jumbotron"> - <section> - {% if page.notification.description and page.notification.title %} - {% include frontpage/notification.html - title=page.notification.title - description=page.notification.description %} - {% endif %} - <h1>News, Announcements, Blogs - + <section> + <div class="info-col"> + <div class="frontpage-wide-jumbotron"> + <section> + {% if page.notification.description and page.notification.title %} + {% include frontpage/notification.html + title=page.notification.title + description=page.notification.description %} + {% endif %} + <h1>News, Announcements, Blogs + - </h1> - <div class="flex-cards"> - {%- assign posts = site.posts | where:"lang", site.default.lang -%} - {%- for post in posts limit:3 -%} - {%- assign post_translated = site.categories[page.lang] | where_exp: "item", "post.lang_ref == item.lang_ref" | first -%} - {%- if forloop.index < 4 -%} - {%- assign class="" -%} - {%- else -%} - {%- assign class="hide-on-mobile" -%} - {%- endif -%} - {%- if post_translated -%} - {%- include cards/post_card.html post=post_translated class=class -%} - {%- else -%} - {%- include cards/post_card.html post=post class=class -%} - {%- endif -%} - {%- endfor -%} - </div> - <a href="{{ 'news/' | relative_url }}" class="btn btn-outline-secondary">All HIFIS News</a> - <a href="https://lists.desy.de/sympa/subscribe/hifis-announce" - class="btn btn-outline-secondary" - title="Subscribe to HIFIS Announcements Letter - also unsubscribe"> - Subscribe <i class="fas fa-bell"></i></a> - <a class="btn btn-outline-secondary" href="{{ '/feed/news.xml' | relative_url }}" - title="Subscribe to HIFIS News Feed" - type="application/atom+xml" - download> - RSS Feed <i class="fas fa-rss"></i></a> - </section> - </div> - - <div class="frontpage-jumbotron"> - <section> - <h1><i class="far fa-calendar-alt" aria-hidden="true"></i> 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 %} - {% assign events_counter = events_counter|plus:1 %} - {% if events_counter >= 3 %} - {% break %} - {% endif %} - {% endfor %} - {% if has_upcoming_events == false %} - <article class="list-entry"> - <h1> - There are no upcoming events right now ... stay tuned. - </h1> - </article> - {% endif %} + </h1> + <div class="flex-cards"> + {%- assign posts = site.posts | where:"lang", site.default.lang -%} + {%- for post in posts limit:3 -%} + {%- assign post_translated = site.categories[page.lang] | where_exp: "item", "post.lang_ref == item.lang_ref" | first -%} + {%- if forloop.index < 4 -%} + {%- assign class="" -%} + {%- else -%} + {%- assign class="hide-on-mobile" -%} + {%- endif -%} + {%- if post_translated -%} + {%- include cards/post_card.html post=post_translated class=class -%} + {%- else -%} + {%- include cards/post_card.html post=post class=class -%} + {%- endif -%} + {%- endfor -%} + </div> + <a href="{{ 'news/' | relative_url }}" class="btn btn-outline-secondary">All HIFIS News</a> + <a href="https://lists.desy.de/sympa/subscribe/hifis-announce" + class="btn btn-outline-secondary" + title="Subscribe to HIFIS Announcements Letter - also unsubscribe"> + Subscribe <i class="fas fa-bell"></i></a> + <a class="btn btn-outline-secondary" href="{{ '/feed/news.xml' | relative_url }}" + title="Subscribe to HIFIS News Feed" + type="application/atom+xml" + download> + RSS Feed <i class="fas fa-rss"></i></a> + </section> </div> - <a href="{{ 'events/' | relative_url }}" class="btn btn-outline-secondary">All Events</a> - </section> - </div> -</div> -</section> + + <div class="frontpage-jumbotron"> + <section> + <h1><i class="far fa-calendar-alt" aria-hidden="true"></i> 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 %} + {% assign events_counter = events_counter|plus:1 %} + {% if events_counter >= 3 %} + {% break %} + {% endif %} + {% endfor %} + {% if has_upcoming_events == false %} + <article class="list-entry"> + <h1> + There are no upcoming events right now ... stay tuned. + </h1> + </article> + {% endif %} + </div> + <a href="{{ 'events/' | relative_url }}" class="btn btn-outline-secondary">All Events</a> + </section> + </div> + </div> + </section> <div class="transition-block">