diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-12-16 17:45:03 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-12-16 17:45:03 -0600 |
commit | 7e49db5ddefe8c515b5f3931a5c701efaac33d91 (patch) | |
tree | d7d1efda44837a466fe079266efda90021812399 /plt/page_nav.html | |
parent | 3112a76dac594fe715b59e53c399b0dec5b53193 (diff) |
change structure for new pyssg version
Diffstat (limited to 'plt/page_nav.html')
-rw-r--r-- | plt/page_nav.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/plt/page_nav.html b/plt/page_nav.html new file mode 100644 index 0000000..d182e53 --- /dev/null +++ b/plt/page_nav.html @@ -0,0 +1,28 @@ +{%macro print(page, config, div_class_name)%} +<div class="{{div_class_name}}"> + {%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']['main']}}" 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%} |