forked from blackberry/blackberry.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
news.html
53 lines (50 loc) · 1.18 KB
/
news.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
---
layout: default
title: Open Source News
---
<h1>Open Source News</h1>
<div id="posts">
<div>
{% for post in site.posts %}
<div style="border-bottom: 1px solid #DFDFDF;">
{% include post.html %}
</div>
{% endfor %}
</div>
{% if site.total_pages > 1 %}
<div>
<div>
{% if site.previous_page > 1 %}
{% capture page_url %}page{{ page }}{% endcapture%}
{% endif %}
{% if site.previous_page %}
<div>
<a href="/{{ page_url }}" title="Go to previous page">
«
</a>
</div>
{% endif %}
<div>
{% for page in (1..site.total_pages) %}
<div>
{% if page > 1 %}
{% capture page_url %}page{{ page }}{% endcapture%}
{% endif %}
{% if page == site.page %}
{{ page }}
{% else %}
<a href="/{{ page_url }}">{{ page }}</a>
{% endif %}
</li>
{% endfor %}
{% if site.next_page %}
<div>
<a href="/page{{ site.next_page }}" title="Go to next page">
»
</a>
</div>
{% endif %}
</div>
</div>
{% endif %}
</div>