<h2>Search Results:</h2>
<ul>
{% for desc, id, name, code, _ in searchresult %}
    {% if desc == 'song' %}
    <a href="{{ url_for('songpage', id=id) }}"><li>
        <span class="search-icon">
            <img src="{{ url_for('static', filename='songicon.png') }}" alt="Song Icon"/>
        </span>
        <span class="search-type">Song:</span>
        {{ name }}
    </li></a>
    {% elif desc == 'album' %}
    <a href="{{ url_for('songindex', _anchor=code) }}" onclick="albumselect('{{ code }}')"><li>
        <span class="search-icon album">
            <img src="{{ url_for('static', filename='albumicons/') }}{{ code }}.svg" alt="{{ code }}"/>
        </span>
        <span class="search-type">Album:</span>
        {{ name }}
    </li></a>
    {% elif desc == 'motif' %}
    <a href="{{ url_for('motifpage', id=id) }}"><li>
        <span class="search-icon">
            <img src="{{ url_for('static', filename='motificon.png') }}" alt="Motif Icon"/>
        </span>
        <span class="search-type">Motif:</span>
        {{ name }}
    </li></a>
    {% endif %}
{% endfor %}
</ul>