-
Notifications
You must be signed in to change notification settings - Fork 855
/
newslist.html
18 lines (17 loc) · 1.03 KB
/
newslist.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
<div class="newstable">
<div class="list-group">
{% assign newsitems = site.categories['news'] | sort: date | reverse | where:"layout", "news" %}
{% for post in newsitems limit: 5 %}
<a class="list-group-item" href="{% if post.external %}{{post.link}}{% else %}{{ post.url | prepend: site.baseurl }}{% endif %}">
<p class="list-group-item-text">{% if post.start %}{{post.start | date: data_format }}{% if post.end %} - {{post.end | date: date_format}}{% endif %}{% else %}{{ post.date | date: date_format }}{% endif %}</p>
<div class="list-group-item-heading">
{% if post.tags contains 'event' %}{% icon event aria=false %}{% endif %}
{% if post.tags contains 'new tutorial' %}{% icon curriculum aria=false %}{% endif %}
{% if post.tags contains 'new feature' %}{% icon announcement aria=false %}{% endif %}
{% if post.tags contains 'cofest' %}{% icon cofest aria=false %}{% endif%}
{{ post.title | escape }} </div>
</a>
{% endfor %}
</div>
</div>