-
Notifications
You must be signed in to change notification settings - Fork 40
/
root-index.html
29 lines (26 loc) · 986 Bytes
/
root-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
---
layout: default
language: en
subset: root
permalink: /
---
<div class="home">
{% assign posts=site.posts | where:"language", page.language %}
{% if posts == empty %}
<meta http-equiv="refresh" content="0; url={{ site.baseurl}}/{{ page.language }}/items">
<p>{% t 'redirecting' %} <a href="{{ site.baseurl}}/{{ page.language }}/items" title="Checklist">Checklist</a></p>
{% else %}
<h1 class="page-heading">{% t 'blog' %}</h1>
<ul class="post-list">
{% for post in posts %}
<li>
<span class="post-meta">{{ post.date | date: "%Y-%m-%d" }}</span>
<h2>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}" title="{{ post.title }}">{{ post.title }}</a>
</h2>
</li>
{% endfor %}
</ul>
<p class="rss-subscribe">{% t 'subscribe' %} <a href="{{ "/feed.xml" | prepend: site.baseurl }}" title="{% t 'subscribe' %} {% t 'byrss' %}">{% t 'byrss' %}</a></p>
{% endif %}
</div>