Explorar o código

Adds a breadcrumb template to manage hiding 'Edit on Github' link.
To work, requires adding a meta the very beginning of files that have to hide this link:
:github_url: hide

StraToN %!s(int64=6) %!d(string=hai) anos
pai
achega
54c3b3e98a
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      _templates/breadcrumbs.html

+ 7 - 0
_templates/breadcrumbs.html

@@ -0,0 +1,7 @@
+{%- extends "sphinx_rtd_theme/breadcrumbs.html" %}
+
+{% block breadcrumbs_aside %}
+{% if not meta or meta.get('github_url') != 'hide' %}
+{{ super() }}
+{% endif %}
+{% endblock %}