From 54c3b3e98a9b0c41a3ee6c5d593d9165808f79e2 Mon Sep 17 00:00:00 2001 From: StraToN Date: Thu, 25 Jul 2019 15:49:11 +0200 Subject: [PATCH] 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 --- _templates/breadcrumbs.html | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 _templates/breadcrumbs.html diff --git a/_templates/breadcrumbs.html b/_templates/breadcrumbs.html new file mode 100644 index 00000000..804ad69e --- /dev/null +++ b/_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 %}