-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·62 lines (49 loc) · 1.55 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
---
layout: default
title: ABSOLVENTA Dev Blog
description: "The Findings of Berlin-based ABSOLVENTA's Dev-Team ♦ Ruby ♦ Rails ♦ Javascript"
---
{% for post in paginator.posts %}
{% assign author = site.authors[post.author] %}
<article class="post">
{% if post.external-url %}
<h1>
<a href="{{ post.external-url }}">{{ post.title }}</a>
<a class="anchor" href="{{ post.url }}"><i class="icon-anchor"></i></a>
</h1>
{% else %}
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
{% endif %}
<p class="meta">
Posted on {{ post.date | date: "%B %d, %Y" }} by {{ author.display_name }}
</p>
<div class="post-content">
{% if post.teaser %}
{{ post.teaser }}
{% else %}
{{ post.content | truncatewords:75 }}
{% endif %}
<p></p>
<p> <a href="{{ post.url }}">Read more…</a></p>
</div>
</article>
{% endfor %}
{% if paginator.total_pages > 1 %}
<div class="postnavigation">
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
<a class="prev left" href="/">← Newer</a>
{% else %}
<a class="prev left" href="/page{{paginator.previous_page}}/">← Newer</a>
{% endif %}
{% else %}
<span class="nope left">← Newer</span>
{% endif %}
<span class="pages">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a class="next right" href="/page{{paginator.next_page}}/">Older →</a>
{% else %}
<span class="nope right">Older →</span>
{% endif %}
</div>
{% endif %}