-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (52 loc) · 1.87 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
60
61
---
layout: default
title: Home
---
<div class="posts">
{% for post in paginator.posts %}
<article class="post">
<h1 class="post-title">
<a href="{{ site.baseurl }}{{ post.url }}">
{{ post.title }}
</a>
</h1>
<time datetime="{{ post.date | date_to_xmlschema }}" class="post-date">{{ post.date | date_to_string }}</time>
{% if post.categories.size > 0 %}
{% capture categories_content %}
Filed Under:
{% for post_cat in post.categories %}{% if post_cat != post.categories[0] %}, {% endif %}<a href="/category_index#{{post_cat}}">{{ post_cat }}</a>{% endfor %}
{% endcapture %}
{% else %}
{% assign categories_content = '' %}
{% endif %}
<p class="post-category-list">{{ categories_content }}</p>
{% if post.tags.size > 0 %}
{% capture tags_content %}
Tagged:
{% for post_tag in post.tags %}{% if post_tag != post.tags[0] %}, {% endif %}<a href="/tag_index#{{post_tag}}">{{ post_tag }}</a>{% endfor %}
{% endcapture %}
{% else %}
{% assign tags_content = '' %}
{% endif %}
<p class="post-tag-list">{{ tags_content }}</p>
{% if post.content contains '<!--more-->' %}
{{ post.content | split:'<!--more-->' | first }}
<a href="{{ post.url }}">Read more...</a>
{% else %}
{{ post.content }}
{% endif %}
</article>
{% endfor %}
</div>
<div class="pagination">
{% if paginator.next_page %}
<a class="pagination-item older" href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older</a>
{% else %}
<span class="pagination-item older">Older</span>
{% endif %}
{% if paginator.previous_page %}
<a class="pagination-item newer" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer</a>
{% else %}
<span class="pagination-item newer">Newer</span>
{% endif %}
</div>