-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (56 loc) · 2.09 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
62
63
---
layout: default
pagination:
enabled: true
---
<main class="post-list">
<div>
<p style="text-align: center;">Hello, I'm Mark Fischer. I am a Digital Experience Architect at ArcBest.</p>
<p style="text-align: center;">
<a href="https://github.com/flyingfisch">GitHub</a> ∙
<a href="http://codepen.io/flyingfisch/">Codepen</a> ∙
<a href="https://unsplash.com/@flyingfisch">Unsplash</a> ∙
<a href="https://www.linkedin.com/in/flyingfisch">LinkedIn</a>
</p>
</div>
{% for post in paginator.posts %}
<article class="post">
<div class="post-info">
{% if post.author %}<strong>Author:</strong> {{ post.author }}<br>{% endif %}
<strong>Posted:</strong> {{ post.date | date: "%b %-d, %Y" }}<br>
{% unless post.categories == empty %}
<strong>Categories:</strong> {{ post.categories | join: ', ' }}<br>
{% endunless %}
</div>
<section>
<h1><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h1>
<p>
{{ post.content
| strip
| replace: '</h1>', '¶'
| replace: '</h2>', '¶'
| replace: '</p>','¶'
| strip_html
| truncatewords: 50
| replace: '¶', '<span class="light"> ¶</span>'
}}
</p>
</section>
</article>
{% endfor %}
<div class="pagination-links">
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}">Older Posts</a>
{% else %}
<span class="disabled-link">Older Posts</span>
{% endif %}
∙
<a href="categories.html">Categories</a>
∙
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Newer Posts</a>
{% else %}
<span class="disabled-link">Newer Posts</span>
{% endif %}
</div>
</main>