-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (53 loc) · 1.72 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
---
<div class="posts">
{% for post in paginator.posts %}
<article class="post">
<h1 class="post-title">
<a href="{% if post.link %}{{ post.link }}{% else %}{{ post.url }}{% endif %}">{{ post.title | smartify }}</a>{% if post.link %}<span class="link-arrow"> →</span>{% endif %}
</h1>
<time datetime="{{ post.date | date_to_xmlschema }}" class="post-date">{{ post.date | date_to_long_string: "ordinal", "US" }}
{% if post %}
{% assign categories = post.categories %}
{% else %}
{% assign categories = page.categories %}
{% endif %}
{% for category in categories %}
in <a href="{{site.baseurl}}/categories/#{{category|slugize}}">{{category}}</a>
{% unless forloop.last %} {% endunless %}
{% endfor %}
{%- if post.last_modified_at -%}
<br><i>Last updated on: {{ post.last_modified_at | date_to_long_string: "ordinal", "US" }}</i>
{%- endif -%}
</time>
<span class="permalink">
{% if post.link %}
<a href="{{ post.url }}">Permalink</a>
{% endif %}
</span>
{{ post.content | smartify }}
<br>
<div class="tag-list">
{% if post %}
{% assign tags = post.tags %}
{% else %}
{% assign tags = page.tags %}
{% endif %}
{% for tag in tags %}
<a href="{{site.baseurl}}/tags/#{{tag|slugize}}">#{{tag}}</a>
{% unless forloop.last %} {% endunless %}
{% endfor %}
</div>
</article>
{% endfor %}
</div>
<div class="PageNavigation">
{% if paginator.next_page %}
<a class="prev" href="{{ paginator.next_page_path | prepend: site.baseurl }}">← Older</a>
{% endif %}
{% if paginator.previous_page %}
<a class="next" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer →</a>
{% endif %}
</div>