mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 11:58:53 +00:00
51 lines
1.7 KiB
Twig
Executable file
51 lines
1.7 KiB
Twig
Executable file
{% extends 'partials/base.html.twig' %}
|
|
|
|
{% set sidebar = theme_var('sidebar')|defined(true) %}
|
|
|
|
{% block menu %}
|
|
{% include 'partials/sidebar_right.html.twig' %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<article class="post">
|
|
<header>
|
|
<div class="title">
|
|
{% block results %}
|
|
<div class="content-padding simplesearch">
|
|
<h1 class="search-header">{{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS"|t }}</h1>
|
|
<div class="center">
|
|
{% include 'partials/simplesearch_searchbox_results.html.twig' %}
|
|
</div>
|
|
<p class="published">
|
|
{% if query %}
|
|
{% set count = search_results ? search_results.count : 0 %}
|
|
{% if count is same as( 1 ) %}
|
|
{{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS_SUMMARY_SINGULAR"|t(query|e)|raw }}
|
|
{% else %}
|
|
{{ "PLUGIN_SIMPLESEARCH.SEARCH_RESULTS_SUMMARY_PLURAL"|t(query|e, count)|raw }}
|
|
{% endif %}
|
|
{% endif %}
|
|
</p>
|
|
</div>
|
|
{% endblock %}
|
|
</div>
|
|
</header>
|
|
{% for page in search_results %}
|
|
{% set datestamp = include('partials/page-bits/date.html.twig') %}
|
|
{% include 'partials/simplesearch_item.html.twig' with {'page':page, datestamp} %}
|
|
{% endfor %}
|
|
</article>
|
|
|
|
{% if sidebar == false %}
|
|
<section id="footer" class="align-center">
|
|
{% include 'partials/sidebar-bits/footer.html.twig' %}
|
|
</section>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block sidebar %}
|
|
{% if sidebar == true %}
|
|
{% include 'partials/sidebar_left.html.twig' %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|