From 22eb4a9ce02586fc45bfd1186a850aa23a2db12e Mon Sep 17 00:00:00 2001 From: Sandra McCann Date: Tue, 9 Nov 2021 09:51:54 -0500 Subject: [PATCH] Remove edit on github from collection pages (#76259) * remove main index page from Edit on Github * remove all collection index pages from Edit on Github --- docs/docsite/.templates/breadcrumbs.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/docsite/.templates/breadcrumbs.html b/docs/docsite/.templates/breadcrumbs.html index a5c121a3444..029417640a2 100644 --- a/docs/docsite/.templates/breadcrumbs.html +++ b/docs/docsite/.templates/breadcrumbs.html @@ -15,6 +15,13 @@ )) %}
+ + {% elif pagename == 'index' %} +
+ + {% elif pagename.startswith('collections/') %} +
+ {% elif check_meta and pagename.startswith('cli') and meta.get('source', None) %} {{ _('Edit on GitHub') }} {% elif (not 'list_of' in pagename) and (not 'category' in pagename) %}