summaryrefslogtreecommitdiff
path: root/blog/plt/page_nav.html
diff options
context:
space:
mode:
Diffstat (limited to 'blog/plt/page_nav.html')
-rw-r--r--blog/plt/page_nav.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/blog/plt/page_nav.html b/blog/plt/page_nav.html
new file mode 100644
index 0000000..b15b9eb
--- /dev/null
+++ b/blog/plt/page_nav.html
@@ -0,0 +1,28 @@
+{%macro print(page, config)%}
+<div class="page-nav">
+ {%if page.next is not none%}
+ <span class="next">
+ <a href="{{page.next.url}}" alt="Next">
+ <i class="fas fa-arrow-left" alt="Arrow left"></i>
+ <span>Next</span>
+ </a>
+ </span>
+ {%endif%}
+
+ <span class="index">
+ <a href="{{config.url}}" alt="Index">
+ <i class="fas fa-home" alt="Home"></i>
+ <span>Index</span>
+ </a>
+ </span>
+
+ {%if page.previous is not none%}
+ <span class="previous">
+ <a href="{{page.previous.url}}" alt="Previous">
+ <i class="fas fa-arrow-right" alt="Arrow right"></i>
+ <span>Previous</span>
+ </a>
+ </span>
+ {%endif%}
+</div>
+{%endmacro%}