{# # Searchresult Page # ------------ #} {# Subtemplate Setup #} {% set _t = { bodyclass: 'search', sections: ['blogChannel'], name: 'Search', limit: 12 } %} {% extends '_layout/main-layout.html' %} {% block content %} {# Search Query #} {% set searches = craft.entries({ search: craft.request.getParam('q'), section: _t.sections, order: 'score', limit: _t.limit })%}
{{ searches.total }} {{ 'Ergebnisse für'|t }} : {{ searches.search }}
{# Generate the Search Results #} {% paginate searches as search %} {% include '_components/articleBoxes.html' with { data: search, type: '' } %} {# Include Pagination #} {{ _.pagination(paginate,craft,'',searches.search) }} {% else %}{{ 'Leider keine Ergebnisse für'|t }} : {{ craft.request.getParam('q') }}
{% endif %}