Skip to content

Commit

Permalink
Adds a breadcrumb template to manage hiding 'Edit on Github' link.
Browse files Browse the repository at this point in the history
To work, requires adding a meta the very beginning of files that have to hide this link:
:github_url: hide
  • Loading branch information
StraToN committed Jul 25, 2019
1 parent fd7992c commit 54c3b3e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions _templates/breadcrumbs.html
Original file line number Diff line number Diff line change
@@ -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 %}

0 comments on commit 54c3b3e

Please sign in to comment.