-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·39 lines (38 loc) · 1.89 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: 430px; background-image: url({{ site.cover }}); {% if site.parallax != true %}background-attachment: scroll;{% endif %}" data-stellar-background-ratio="0.5" data-stellar-horizontal-offset="50">
{% include top.html %}
<a href="{{ site.url }}{{ site.baseurl }}">
<div id="home-title" class="site-icon-home" style="background-image: url({{ site.icon }});" data-stellar-ratio="0.5"></div>
</a>
</header>
<div id="middle">
<div id="post-list">
{% for post in paginator.posts %}
<div>
<span class="post-date">{{ post.date | date_to_long_string }}</span>
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
<p class="post-description">{% if post.quote %}{{ post.quote }}{% else %}{{ post.content | strip_html | truncatewords: 50 }}{% endif %}</p>
</div>
<br>
{% endfor %}
</div>
<nav class="pagination" role="navigation">
{% if paginator.next_page %}
<a class="newer-posts" href="{{ site.baseurl }}/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="{{ site.baseurl }}/">Newer posts →</a>
{% else %}
<a class="older-posts" href="{{ site.baseurl }}/page{{paginator.previous_page}}">Newer posts →</a>
{% endif %}
{% endif %}
</nav>
</div>
<footer class="clean" style="background-color: #000; background-position: bottom; bottom: 0; z-index: 4; position: absolute; height: 60px; {% if site.parallax != true %}background-attachment: scroll;{% endif %}">
<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>