{% for article in articles %}
    {# Highlight substring matching #}
    {# Keep this a single line to avoid unwanted spaces. #}
    <li><a href="/search?q={{ article['id']['value'] }}"><strong>{{ article['id']['value'][:search_term|length] }}</strong>{{ article['id']['value'][search_term|length:] }}</a></li>
{% endfor %}
