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

very rough 2 lane design for news vs events

parent cf8660e2
No related branches found
No related tags found
2 merge requests!203WIP: Test MR,!177HIFIS unified step 1
......@@ -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>&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 %}
{% 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>&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 %}
{% 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">
......
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