-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (47 loc) · 1.97 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
layout: default
title: Home
cover: false
---
<header class="site-head" {% if page.cover %} style="background-image: url({{ page.cover }})"{% endif %}>
<div class="vertical">
<div class="site-head-content" class="inner">
{% if page.logo %}
<a class="blog-logo" href="{{ site.baseurl }}">
<img src="{{ page.logo }}" alt="Blog Logo" />
</a>
{% endif %}
<h1 class="blog-title">{{ site.name }}</h1>
<h2 class="blog-description">
{{ site.description }}.
{% if page.about %} <a href='{{ site.baseurl }}{{ page.about }}'> About me </a> {% endif %}
</h2>
</div>
</div>
</header>
<main class="content" role="main">
{% for post in paginator.posts %}
<article class="post">
<header class="post-header">
<span class="post-meta"><time datetime="{{ post.date | date:"%Y-%m-%d" }}">{{ post.date | date_to_string }}</time> {{!tags prefix="on "}}</span>
<h2 class="post-title"><a href="{{ post.url }}">{{ post.title }}</a></h2>
</header>
<section class="post-excerpt">
{{ post.content | strip_html | truncatewords: 50 }}
</section>
</article>
{% endfor %}
<nav class="pagination" role="pagination">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a class="newer-posts" href="/" title="Previous Page">« Newer Posts</a>
{% else %}
<a class="newer-posts" href="/page{{ paginator.previous_page }}/" title="Previous Page">« Newer Posts</a>
{% endif %}
{% endif %}
<span class="page-number"> Page {{paginator.page}} of {{paginator.total_pages}} </span>
{% if paginator.next_page %}
<a class="older-posts" href="/page{{ paginator.next_page }}/" title="Next Page">Older Posts »</a>
{% endif %}
</nav>
</main>