<commit_before>{% set uri = base_url|rtrim('/') ~ '/' ~ config.get('plugins.tntsearch.query_route', 's')|trim('/') %}
{% set options = { uri: uri, limit: '', snippet: '', min: 3 } %}
{% set placeholder = placeholder is defined ? placeholder : 'Search...' %}
<form role="form">
    {% block tntsearch_input %}
    <div id="tntsearch-wrapper" class="form-group">
        <input type="text" class="form-control tntsearch-field" data-tntsearch="{{ options|json_encode|e('html_attr') }}" placeholder="{{ placeholder }}">
    </div>
    {% endblock %}
    <div class="tntsearch-results{{ in_page ? ' tntsearch-inpage' : '' }}"></div>

    <p class="tntsearch-powered-by">
        Powered by <a href="https://github.com/trilbymedia/grav-plugin-tntsearch" target="_blank">TNTSearch</a>
    </p>
</form><commit_msg>#10 render results on page load with query (#11)<commit_after>{% set uri = base_url|rtrim('/') ~ '/' ~ config.get('plugins.tntsearch.query_route', 's')|trim('/') %}
{% set options = { uri: uri, limit: '', snippet: '', min: 3 } %}
{% set placeholder = placeholder is defined ? placeholder : 'Search...' %}
<form role="form">
    {% block tntsearch_input %}
    <div id="tntsearch-wrapper" class="form-group">
        <input type="text" class="form-control tntsearch-field" data-tntsearch="{{ options|json_encode|e('html_attr') }}" placeholder="{{ placeholder }}" value="{{ query }}">
    </div>
    {% endblock %}
    <div class="tntsearch-results{{ in_page ? ' tntsearch-inpage' : '' }}">
    {% if tntsearch_results is defined and tntsearch_results is not empty %}
        {% include 'tntquery-ajax.html.twig' %}
    {% endif %}
    </div>

    <p class="tntsearch-powered-by">
        Powered by <a href="https://github.com/trilbymedia/grav-plugin-tntsearch" target="_blank">TNTSearch</a>
    </p>
</form>
{'fraction_non_alphanumeric': 0.20739106453392167, 'fraction_numerical': 0.003309431880860452, 'mean_word_length': 4.038888888888889, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4214200', 'n_tokens_mistral': 624, 'n_tokens_neox': 588, 'n_words': 125}