forked from anathema/anathema.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (35 loc) · 1.01 KB
/
index.html
File metadata and controls
39 lines (35 loc) · 1.01 KB
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
---
layout: default
title: News
---
{% assign first_post = site.posts.first %}
<div id="post">
<h2><a href="{{ first_post.url }}">{{ first_post.title }}</a></h2>
<p><b>posted by {{first_post.author}} on {{ first_post.date | date: "%d. %m. %Y" }}</b></p>
{{ first_post.content }}
</div>
<h2>Previous posts</h2>
<!--Taken from https://gist.github.com/1250095 by shinichikusai-->
{% if paginator.next_page or paginator.previous_page %}
<ul id="archive">
{% for post in paginator.posts %}
<li><a href="{{ post.url }}">{{ post.title }}</a> - <abbr>{{ post.date | date: "%d. %m. %y" }}</abbr></li>
{% endfor %}
</ul>
<table width="100%">
<tr>
<td>
{% if paginator.previous_page == 1 %}
<a href="/">« Newer</a>
{% elsif paginator.previous_page %}
<a href="/page{{ paginator.previous_page }}/">« Newer</a>
{% endif %}
</td>
<td>
{% if paginator.next_page %}
<a style="float:right" href="/page{{ paginator.next_page }}/">Older »</a>
{% endif %}
</td>
</tr>
</table>
{% endif %}