-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
47 lines (44 loc) · 1.24 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
---
layout: default
title: Home
description: Alexander Guz's personal blog. A place to share thoughts.
pagination:
enabled: true
---
{% for post in paginator.posts %}
<div class="entry">
<div class="entry-content">
{% if post.external_link %}
<h1 class="external-link">
<a href="{{ post.external_link }}" target="_blank">{{ post.title }}</a>
</h1>
{% else %}
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
{% endif %}
<time class="post-date">
{{ post.date | date: "%B %-d, %Y" }}
{% if post.external_link %}
<a href="{{ post.url }}" title="Internal Link">◉</a>
{% endif %}
</time>
<div>
{{ post.excerpt }}
</div>
{% if post.content contains '<!--more-->' %}
<section class="post-meta">
<span class="read-more"><a href="{{ post.url }}">Read more</a> ▶︎</span>
</section>
{% endif %}
</div>
</div>
{% endfor %}
{% if paginator.total_pages > 1 %}
<nav class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« prev</a>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">next »</a>
{% endif %}
</nav>
{% endif %}