-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
37 lines (34 loc) · 1.37 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
---
layout: default
title: Echo в России
---
{% assign post=site.posts.first %}
<div class="post">
<h1 class="post__title"><a href="{{ post.url }}">{{ post.title }}</a></h1>
<div class="post__subtitle">
Пишет <a href="{{ post.author_url }}">{{ post.author }}</a>,
{{ post.date | date: "%d.%m.%Y" }}
</div>
<div class="post__content">
{{ post.content }}
</div>
<a class="post__comments comments_counter" href="{{ post.url }}#comments" data-url="{{ site.url}}{{ post.url }}">
Комментарии
</a>
</div><div class="post__hr"></div>
<div class="archive">
<div class="archive__header">Предыдущие записи</div>
{% for post in site.posts offset:1 %}
<div class="archive__item">
<h1 class="archive__item__header"><a href="{{post.url}}">{{ post.title }}</a></h1>
<div class="archive__item__subtitle">
<span class="archive__item__author">{{ post.author }}, </span>
<span class="archive__item__date">{{ post.date | date: "%d.%m.%Y" }}</span>
— <a class="archive__comments comments_counter" href="{{ post.url }}#comments" data-url="{{ site.url}}{{ post.url }}">
Комментарии
</a>
</div>
</div>
<div class="archive__hr"></div>
{% endfor %}
</div>