{%- if not pagename in ("search", "404", "genindex") and hasdoc(pagename) %} {%- endif %}