don't show the "Edit on GitHub" for the search page

This commit is contained in:
Antoine Vandevenne (anv) 2021-03-03 16:44:03 +01:00
parent 352477bbac
commit 36c9519fb1

View File

@ -92,7 +92,7 @@
{% block body %} {% endblock %}
</div>
{# Do not show the edition link for pages without content #}
{% if github_link and not 'has_only_toc' in meta %}
{% if github_link and 'has_only_toc' not in meta and pagename != 'search' %}
<a href="{{ github_link(mode='edit') }}" class="o_git_link"><i class="i-edit"></i> Edit on GitHub</a>
{% endif %}
</article>