{% extends 'base.html' %}

{% block body %}
    
    <div class="fullsearch">
        <header>
            <div class="logo center">
                <a href="/" class="dokk-logo">DOKK</a>
            </div>
            
            <div class="searchbox">
                <form action="search" id="search" class="search">
                    <input
                        autocomplete="off"
                        autofocus="true"
                        maxlength="2048"
                        name="q"
                        placeholder="Search topics"
                        required="true"
                        spellcheck="false"
                        type="text"
                        value="{{ search_term }}" />
                    
                    <ul class="suggestions"></ul>
                </form>
            </div>
        </header>
        
        <div class="results">
            
            {% for result in results %}
                <div class="margin-bottom">
                    <a href="{{ url('node', id=result['id']['value']) }}">
                        {{ result['id']['value'] }}
                    </a>
                
                    <div>
                        {# {{ result['schema:description'] }} #}
                    </div>
                </div>
            {% endfor %}
            
        </div>
        
        <footer>
        </footer>
    </div>
    
{% endblock %}
