forked from OpenMage/OpenMage.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.html
40 lines (36 loc) · 1.12 KB
/
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: page
title: Blog
classes: page-blog
---
<div class="blog">
<div class="row">
<h2 class="blog__title col">
Latest Posts
</h2>
</div>
<div class="blog__items row">
{% for post in site.posts %}
<div class="blog__item col-sm-10 offset-sm-1 col-md-6 offset-md-0">
{% if post.thumbnail %}
<a class="blog__item-link" href="{{ site.baseurl }}{{ post.url }}">
<div class="blog__item-wrapper">
<img class="blog__item-image" src="{{ post.thumbnail }}" alt="{{ post.title }}" />
</div>
<img class="blog__item-dots" src="/assets/svg/dots-dark.svg" alt="Dots" />
</a>
{% endif %}
{% if post.title %}
<a class="blog__item-title" href="{{ site.baseurl }}{{ post.url }}">
{{ post.title }}
</a>
{% endif %}
{% if post.category %}
<div class="blog__item-info">
{{ post.category }}
</div>
{% endif %}
</div>
{% endfor %}
</div>
</div>