-
Notifications
You must be signed in to change notification settings - Fork 14
/
news.html
40 lines (39 loc) · 1.36 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
---
layout: default
title: News
---
<h1>News</h1>
<div class="row mb-5">
<div class="col">
<p>Here is a list of news items related to Globus Labs. For more timely updates, please follow us on <a href="https://www.twitter.com/LabsGlobus" target="_blank">Twitter <i class="bi bi-twitter"></i></a>.</p>
</div>
</div>
{% for post in site.posts %}
{% if forloop.last == false %}
{% assign borderClass = "border-bottom" %}
{% else %}
{% assign borderClass = "" %}
{% endif %}
<div class="row {{ borderClass }} mb-3">
<div class="col-md-2">
<p>
{% if post.type == 'award' %}
<i class="bi bi-award icon"></i>
{% elsif post.type == 'paper' %}
<i class="bi bi-file-text icon"></i>
{% elsif post.type == 'presentation' %}
<i class="bi bi-easel2 icon"></i>
{% elsif post.type == 'join' %}
<i class="bi bi-person-plus icon"></i>
{% else %}
<i class="bi bi-newspaper icon"></i>
{% endif %}
<span class="mr-3"> </span>
{{ post.date | date: '%b. %d, %Y' }}
</p>
</div>
<div class="col-md-10 news-post">
{{ post.content }}
</div>
</div>
{% endfor %}