summaryrefslogtreecommitdiff
path: root/blog/plt
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2021-06-08 23:25:06 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2021-06-08 23:25:06 -0600
commitf39af47eb03343dadf2c646dc43c8b8e131e427a (patch)
tree8777b3255f29a597f5ac30f3aa703a3afe7b6bc8 /blog/plt
parent5415f37e8da7615b524173f2bb6968be46128d20 (diff)
add xmpp server entry
Diffstat (limited to 'blog/plt')
-rw-r--r--blog/plt/page.html3
-rw-r--r--blog/plt/page_nav.html28
2 files changed, 31 insertions, 0 deletions
diff --git a/blog/plt/page.html b/blog/plt/page.html
index dbb2734..1b0afd9 100644
--- a/blog/plt/page.html
+++ b/blog/plt/page.html
@@ -16,6 +16,9 @@
{{page.content}}
+ {%import "page_nav.html" as page_nav%}
+ {{page_nav.print(page, config)}}
+
<hr>
<div class="article-info">
<p>By {{page.author}}</p>
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%}