-
Notifications
You must be signed in to change notification settings - Fork 2
/
news.html
40 lines (35 loc) · 1.5 KB
/
news.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
title: Events
layout: default
menu: news
---
<div class="container py-5">
<div class="row justify-content-center">
<div class="col-12 col-lg-8 border-bottom border-zx2">
<h3 class="text-zx2 text-center text-lg-left"><i class="far fa-newspaper"></i> News & events</h3>
</div>
</div>
{% assign posts = site.posts | where:"news", "true" %}
{% for post in posts %}
<div class="row justify-content-center mt-4">
<div class="col-lg-8 d-none d-lg-block">
<div>
<a class='font-weight-bold' href="{{site.url}}{{site.baseurl}}{{post.url}}">{{post.title}}</a>
<time class="float-right text-white" datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%d/%m/%Y" }}</time>
</div>
<div class="mt-2">
{{ post.content | strip_html | truncate:300}}
</div>
</div>
<div class="col-12 d-block d-lg-none text-center">
<a class='font-weight-bold' href="{{site.url}}{{site.baseurl}}{{post.url}}">{{post.title}}</a>
</div>
<div class="col-12 d-block d-lg-none text-center">
<time class="text-white" datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%d/%m/%Y" }}</time>
</div>
<div class="col-12 d-block d-lg-none text-left mt-2">
{{ post.content | strip_html | truncate:300}}
</div>
</div>
{% endfor %}
</div>