-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (55 loc) · 2.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
layout: default
title: "Home"
description: "The OwO Developers' Blog"
---
<ul class="article-list">
{% for post in paginator.posts %}
<li class="article-list-item {% if site.scrollappear_enabled %}scrollappear{% endif %}">
<a href="{{ post.url | relative_url }}" title="{{ post.title }}">
<h5>
{{ post.title }}
<svg class="icon-arrow-right"><use href="{% asset_path icon-arrow-right.svg %}#icon-arrow-right" xlink:href="{% asset_path icon-arrow-right.svg %}#icon-arrow-right"></use></svg>
</h5>
</a>
<p>{{ post.description }}</p>
<div class="article-list-footer">
<span class="article-list-author">
{% assign author = site.authors[post.author] %}
<a href="{{ author.link }}" title="{{ author.link_title }}">
{{ author.name }}
</a>
</span>
<span class="article-list-divider">-</span>
<span class="article-list-date">
{{ post.date | date: "%B %-d, %Y" }}
</span>
<span class="article-list-divider">-</span>
<span class="article-list-minutes">
{% capture words %}
{{ post.content | number_of_words }}
{% endcapture %}
{% unless words contains "-" %}
{{ words | plus: 250 | divided_by: 250 | append: " minute read" }}
{% endunless %}
</span>
<span class="article-list-divider">-</span>
<div class="article-list-tags">
{% for tag in post.tags %}
<a href="{{ 'tag/' | relative_url }}{{ tag }}">{{ tag }}</a>
{% endfor %}
</div>
</div>
</li>
{% endfor %}
{% if paginator.total_pages > 1 %}
<li class="article-pagination {% if site.settings.scrollappear_enabled %}scrollappear{% endif %}">
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="article-pagination-left"><svg class="icon-arrow-left"><use href="{% asset_path icon-arrow-left.svg %}#icon-arrow-left" xlink:href="{% asset_path icon-arrow-left.svg %}#icon-arrow-left"></use></svg> Older posts</a>
{% endif %}
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="article-pagination-right">Newer posts <svg class="icon-arrow-right"><use href="{% asset_path icon-arrow-right.svg %}#icon-arrow-right" xlink:href="{% asset_path icon-arrow-right.svg %}#icon-arrow-right"></use></svg></a>
{% endif %}
</li>
{% endif %}
</ul>