forked from Gus06/openath.github.io
-
Notifications
You must be signed in to change notification settings - Fork 6
/
news.html
33 lines (25 loc) · 956 Bytes
/
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
---
layout: default
title: News
permalink: /oldnews/
tags: news
---
{% for post in site.posts %}
<article class="news" style="margin: 48px 0 62px;">
<div class="post-date">{{ post.date | date_to_string }}</div>
<div class="row">
<div class="col-sm-6 news_list_content">
<h2 class="news_list_title"><a href="{{ post.url }}">{{ post.title }}</a></h2>
<div class="news_list_excerpt">{{ post.excerpt }}</div>
<span style="color: #888">{{ post.author }}</span> • <a href="{{ post.url }}">Read more</a>
</div>
{% if post.cover_image %}
<div class="col-sm-6 news_list_image_box">
<a href="{{ post.url }}"><img src="{{ post.cover_image }}" class="news_list_image img-fluid"></a>
{% else %}
<div class="col-sm-6 hidden-xs news_list_image_box">
<a href="{{ post.url }}"><img src="/assets/img/news_placeholder.jpg" class="news_list_image img-fluid"></a>
{% endif %}
</div>
</article>
{% endfor %}