-
Notifications
You must be signed in to change notification settings - Fork 39
/
blog_navigation.html
19 lines (18 loc) · 1.11 KB
/
blog_navigation.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<div class="post_navigation">{% for post in site.posts %}{% if post.url == page.url %}
<span>{% if forloop.first == false %}
<a href="{{ prev_post.url }}">{% if prev_post.build %}Build {{ prev_post.build }}{% if prev_post.stage != '' and prev_post.stage %} ({{ prev_post.stage }}){% endif %}{% else %}{{prev_post.title}}{% endif %}</a>
{% else %}
The newest build
{% endif %}</span>
<span> | </span>{% comment %}<span> [ {{ forloop.index }} of {{ forloop.length }} ] </span>{% endcomment %}
<span>{% if forloop.last == false %}
<a href="{{ site.posts[forloop.index].url }}">{% if site.posts[forloop.index].build %}Build {{ site.posts[forloop.index].build }}{% if site.posts[forloop.index].stage != '' and site.posts[forloop.index].stage %} ({{ site.posts[forloop.index].stage }}){% endif %}{% else %}{{site.posts[forloop.index].title}}{% endif %}</a>
{% else %}
The oldest build
{% endif %}</span>
{% break %}
{% endif %}{% assign prev_post = post %}{% endfor %}
</div>
<div class="build_download">
<a href="{{ site.fosshub }}" rel="nofollow"><img src="/img/Downloads.png" alt="Fosshub.com" title="Fosshub.com mirror"></img></a>
</div>