{% extends "base.html" %} {% from "layout/icons.html" import icon %} {% from "macros.html" import kind_name %} {% block title %}{{ _("Search") }}{% endblock %} {% block content %}

{{ _("Search") }}

{% if not available %}

{{ _("Search isn't available right now. The rest of the guide still works.") }}

{% elif query and not results %}

{% trans query=query %}Nothing in the guide matches “{{ query }}”.{% endtrans %}

{% endif %} {% if results %}
    {% for result in results %}
  1. {{ result.document.title }} {{ kind_name(result.document.kind) }} {% if result.snippet %}

    {% for text, matched in result.snippet %}{% if matched %}{{ text }}{% else %}{{ text }}{% endif %}{% endfor %}

    {% endif %}
  2. {% endfor %}
{% endif %}
{% endblock %}