refactor to `class="search-poster{% if hasQuery %} focus{% endif %}"`