forked from visdesignlab/visdesignlab.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.html
40 lines (29 loc) · 913 Bytes
/
blog.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: Blog | Vis Design Lab
---
<div class="home">
<div class="banner">
</div>
<article class="blog-page">
{% for post in site.posts %}
{% if post.type == "blog" %}
<div class="blog-teaser">
<div class="post-list-title">
<a class="post-list-link" href="{{ site.baseurl }}{{ post.url }}">
<span>{{ post.title }}</span>
<span class="right-text">{{ post.date | date: "%-d %b %Y" }}</span>
</a>
</div>
{% if post.lead-image %}
<a href="{{ site.baseurl }}{{ post.url }}">
<img src="{{site.baseurl}}{{post.lead-image}}" alt="Blog lead image">
</a>
{% endif %}
<a href="{{ site.baseurl }}{{ post.url }}">
<p>{{ post.abstract | truncatewords: 60}}</p></a>
</div>
{% endif %}
{% endfor %}
</article>
</div>