Skip to content

Commit 0da4652

Browse files
committed
added blog site
1 parent f67ce4d commit 0da4652

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

blog.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
layout: default
3+
title: Blog | Vis Design Lab
4+
---
5+
6+
<div class="home">
7+
8+
<div class="banner">
9+
</div>
10+
11+
<article class="blog-page">
12+
13+
14+
{% for post in site.posts %}
15+
{% if post.type == "blog" %}
16+
17+
<div class="blog-teaser">
18+
19+
<div class="post-list-title">
20+
<a class="post-list-link" href="{{ site.baseurl }}{{ post.url }}">
21+
<span>{{ post.title }}</span>
22+
<span class="right-text">{{ post.date | date: "%-d %b %Y" }}</span>
23+
</a>
24+
</div>
25+
26+
{% if post.lead-image %}
27+
<a href="{{ site.baseurl }}{{ post.url }}">
28+
<img src="{{site.baseurl}}{{post.lead-image}}" alt="Blog lead image">
29+
</a>
30+
{% endif %}
31+
<a href="{{ site.baseurl }}{{ post.url }}">
32+
<p>{{ post.abstract | truncatewords: 60}}</p></a>
33+
</div>
34+
{% endif %}
35+
{% endfor %}
36+
37+
38+
</article>
39+
40+
</div>

0 commit comments

Comments
 (0)