summaryrefslogtreecommitdiffstats
path: root/docs/theme/PrevNext.jinja
diff options
context:
space:
mode:
Diffstat (limited to 'docs/theme/PrevNext.jinja')
-rw-r--r--docs/theme/PrevNext.jinja26
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/theme/PrevNext.jinja b/docs/theme/PrevNext.jinja
new file mode 100644
index 0000000..9c6a572
--- /dev/null
+++ b/docs/theme/PrevNext.jinja
@@ -0,0 +1,26 @@
+{#def curr, prev, next #}
+
+<nav {{ attrs.render(class="cd-prevnext", data_component="PrevNext") }}>
+ {% if prev.url -%}
+ <a href="{{ prev.url }}" class="prev">
+ <i>&larr;</i>
+ <div>
+ <div class="section">
+ {{ prev.section or "Previous" if prev.section != curr.section else "Previous" }}
+ </div>
+ <div class="title">{{ prev.title }}</div>
+ </div>
+ </a>
+ {%- endif %}
+ {% if next.url -%}
+ <a href="{{ next.url }}" class="next">
+ <div>
+ <div class="section">
+ {{ next.section or "Next" if next.section != curr.section else "Next" }}
+ </div>
+ <div class="title">{{ next.title }}</div>
+ </div>
+ <i>&rarr;</i>
+ </a>
+ {%- endif %}
+</nav>