generated from chadbaldwin/simple-blog-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavlinks.html
21 lines (21 loc) · 1.13 KB
/
navlinks.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<hr>
<div class="post_navi">
{%- if page.previous.url -%}
<a class="post_navi-item nav_prev" href="{{ page.previous.url }}" title="{{ page.previous.title }}">
<div class="post_navi-arrow"><</div><div class="post_navi-label">Previous Post</div><div><span>{{ page.previous.title }}</span></div>
</a>
{%- else -%}
<a class="post_navi-item nav_prev" href="{{ 'archive.html' | absolute_url }}" title="Blog Archive">
<div class="post_navi-arrow"><</div><div class="post_navi-label">Blog Archive</div><div><span>Archive of all previous blog posts</span></div>
</a>
{%- endif -%}
{%- if page.next.url -%}
<a class="post_navi-item nav_next" href="{{ page.next.url }}" title="{{ page.next.title }}">
<div class="post_navi-arrow">></div><div class="post_navi-label">Next Post</div><div><span>{{ page.next.title }}</span></div>
</a>
{%- else -%}
<a class="post_navi-item nav_next" href="{{ 'archive.html' | absolute_url }}" title="Blog Archive">
<div class="post_navi-arrow">></div><div class="post_navi-label">Blog Archive</div><div><span>Archive of all previous blog posts</span></div>
</a>
{%- endif -%}
</div>