-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (45 loc) · 1.41 KB
/
index.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
41
42
43
44
45
46
47
48
49
---
layout: default
title: ustwo_engineering
---
<div class="blog__header">
<h1 class="blog__header__title">{{page.title}}</h1>
<p class="blog__header__text">A collection of ustwo Technical Blog Posts</p>
</div>
<ul class="blog">
{% for post in site.posts %}
{% if post == site.posts[0] %}
<li class="blog__list--latest">
<a href="{{post.url}}" class="blog__thumbnail">
<img src="{{post.thumbnail}}" alt="" />
</a>
<div class="blog__post">
<span class="blog__post__date">{{ post.date | date_to_string }}</span>
<h2 class="blog__post__title">
<a href="{{ post.url }}">{{ post.title }}</a>
</h2>
<div class="blog__post__excerpt">
<p>{{post.excerpt}}</p>
</div>
<a href="{{post.url}}" class="btn">Read more</a>
</div>
</li>
{% else %}
<li class="blog__list">
<a href="{{post.url}}" class="blog__thumbnail">
<img src="{{post.thumbnail}}" alt="" />
</a>
<div class="blog__post">
<span class="blog__post__date">{{ post.date | date_to_string }}</span>
<h2 class="blog__post__title">
<a href="{{ post.url }}">{{ post.title }}</a>
</h2>
<div class="blog__post__excerpt">
<p>{{post.excerpt}}</p>
</div>
<a href="{{post.url}}" class="btn">Read more</a>
</div>
</li>
{% endif %}
{% endfor %}
</ul>