-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (38 loc) · 1.44 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
38
39
---
layout: default
title: Home
---
<header class="clean" style="height: 350px; background-image: url({{ site.cover }});">
{% include top.html %}
<div id="home-title">
<a href="{{ site.url }}">
<img src="{{ site.icon }}" class="site-icon">
</a>
</div>
</header>
<div id="post-list">
{% for post in paginator.posts %}
<div>
<span class="post-date">{{ post.date | date_to_long_string }}</span>
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
<p class="post-description">{{ post.content | strip_html | truncatewords: 50 }}</p>
</div>
<br>
{% endfor %}
</div>
<nav class="pagination" role="navigation">
{% if paginator.next_page %}
<a class="newer-posts" href="/page{{paginator.next_page}}">← Older posts</a>
{% endif %}
<span class="page-number">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
<a class="older-posts" href="/">Newer posts →</a>
{% else %}
<a class="older-posts" href="/page{{paginator.previous_page}}">Newer posts →</a>
{% endif %}
{% endif %}
</nav>
<footer class="clean" style="background-image: url({{ site.cover }}); background-position: bottom; height: 60px;">
<p class="copyright">©{{ site.time | date: "%Y" }}, <a href="{{ site.copyright.url }}" target="_blank">{{ site.copyright.author }}</a>. <a href="{{ site.copyright.type_url }}" target="_blank">{{ site.copyright.type_title }}</a>.</p>
</footer>