-
Notifications
You must be signed in to change notification settings - Fork 1
/
blog.html
32 lines (30 loc) · 1013 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
---
layout: blog/blog
title:
permalink: /blog
---
<div class="oktw layout container">
<a class="oktw elements title" href="{{ "/" | relative_url }}"><i class="fas fa-arrow-left"></i> {% t menu.blog %}</a>
<div class="ui items">
{% assign sorted = site.categories.blog | sort: 'date' | reverse %}
{% for post in sorted %}
<a class="item" href="{{ post.url | relative_url }}">
{% if post.image != null %}
<div class="image">
<img src="{{ post.image }}">
</div>
{% endif %}
<div class="content">
<div class="header"><h1>{{ post.title }}</h1>
</div>
<div class="description">
<p>{{ post.description }}</p>
</div>
<div class="extra">
<p>{{ post.date | date: "%Y/%m/%d" }}</p>
</div>
</div>
</a>
{% endfor %}
</div>
</div>