forked from path-cc/path-cc.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
news.html
30 lines (28 loc) · 1.08 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
---
layout: sub-page
bodyClass: page-services-list
---
<h1 class="mb-4">News Articles</h1>
<div class="row">
{% include get/news.liquid %}
{% for article in news %}
<div class="col-12 col-sm-6 col-xl-4 mb-4">
<div class="news news-summary">
<div class="article-content">
{% if article.image.path %}
<a href="{{ article.url | relative_url }}" class="d-block">
<img class="w-100 image-card-cap rounded mb-3" alt="{{ article.image.alt }}" src="{{ article.image.path | relative_url }}">
</a>
{% endif %}
<h2 class="article-title">
<a href="{{ article.url | relative_url }}">{{ article.title }}</a>
{% unless article.hide_date %}
<small class="text-muted article-date">{{ article.date | date: '%B %d, %Y' }}</small>
{% endunless %}
</h2>
<p>{{ article.excerpt | markdownify | strip_html }}</p>
</div>
</div>
</div>
{% endfor %}
</div>