-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathblog.html
32 lines (28 loc) · 870 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: page
title: "Blog"
permalink: /blog/
---
<section class="posts-list">
{% for post in site.posts limit: 6 %}
<section class="post">
<a href="{{ post.url | prepend: site.baseurl }}">
<h2 class="post-title">{{ post.title }}</h2>
<div class="post-date">{{ post.date | date_to_long_string }}</div>
{% if post.main_image_path %}
<div class="post-image">
{% include img.html src=post.main_image_path width=360 height=180 %}
</div>
{% else %}
<div class="post-image empty"></div>
{% endif %}
{% if post.description %}
<div class="post-description">{{ post.description }}</div>
{% endif %}
</a>
</section>
{% endfor %}
</section>
<section class="rss">
<p class="rss-subscribe text">Subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
</section>