aboutsummaryrefslogtreecommitdiffstats
path: root/_better_theme/relbar.html
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2014-12-30 03:42:27 +0100
committerbnewbold <bnewbold@robocracy.org>2014-12-30 03:42:27 +0100
commit7131d99df20e1c2546452124ee52a95fa3ace97b (patch)
tree2f5448956c49fccec186c85204e0f5bb6af9905e /_better_theme/relbar.html
parentf567b9c01512162fa0d9c03719bcfb95068cbe76 (diff)
downloadfpga-lube-7131d99df20e1c2546452124ee52a95fa3ace97b.tar.gz
fpga-lube-7131d99df20e1c2546452124ee52a95fa3ace97b.zip
'better' theme
Diffstat (limited to '_better_theme/relbar.html')
-rw-r--r--_better_theme/relbar.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/_better_theme/relbar.html b/_better_theme/relbar.html
new file mode 100644
index 0000000..6dc8b46
--- /dev/null
+++ b/_better_theme/relbar.html
@@ -0,0 +1,52 @@
+{%- macro rellink_markup() %}
+ <nav id="rellinks">
+ <ul>
+ {%- if prev %}
+ <li>
+ &larr;
+ <a href="{{ prev.link|e }}" title="Previous document">{{ prev.title }}</a>
+ </li>
+ {%- endif %}
+ {%- if next %}
+ <li>
+ <a href="{{ next.link|e }}" title="Next document">{{ next.title }}</a>
+ &rarr;
+ </li>
+ {%- endif %}
+ </ul>
+ </nav>
+{%- endmacro %}
+
+{%- macro breadcrumbs_markup() %}
+ <nav id="breadcrumbs">
+ <ul>
+ {%- block rootrellink %}
+ <li><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a></li>
+ {%- endblock %}
+ {%- for parent in parents %}
+ <li>
+ <a href="{{ parent.link|e }}">{{ parent.title }}</a>
+ </li>
+ {%- endfor %}
+ {%- block relbaritems %} {% endblock %}
+ </ul>
+ </nav>
+{%- endmacro %}
+
+{%- macro relbar_top() %}
+ {%- if theme_showrelbartop|tobool %}
+ <div class="related top">
+ {{- rellink_markup () }}
+ {{- breadcrumbs_markup() }}
+ </div>
+ {%- endif %}
+{%- endmacro %}
+
+{%- macro relbar_bottom() %}
+ {%- if theme_showrelbarbottom|tobool %}
+ <div class="related bottom">
+ {{- rellink_markup () }}
+ {{- breadcrumbs_markup() }}
+ </div>
+ {%- endif %}
+{%- endmacro %}