Newer
Older
pre-www / src / pages / search.twig
@EcosistemaWebIuav EcosistemaWebIuav on 2 May 1 KB feat: search page
{% set currentPage = 21 %}

{% set bodyClasses = 'page' %}

{% extends "../layout/page.twig" %}

{% block content %}

    {% for block in post_type.pages[currentPage].blocks %}
        {% include '../blocks/'~block.key~'.twig' with {'block': block } %}
    {% endfor %}

    <div class="grid-container search-page-input">
        <div class="input input--lg">
            <div class="input__field input__search">
                <button class="input__clear"></button>
                <input type="search" name="search" id="search" class="input__field-input" placeholder="Digita qui per cercare...">
            </div>
        </div>
    </div>

    <div class="search-page-results">
        <div class="grid-container">
            <div class="columns">
                <div class="w-full lg:w-1/2 column">
                    <p class="search-page-results__label">Risultati di ricerca per: architettura</p>
                    <div>
                        {% for id in post_type.pages[currentPage].search_results %}
                            {% set post = post_type.degrees.items[id] %}
                            <div class="search-page-results__post">
                                <h2><a href="{{post.url}}">{{post.title}}</a></h2>
                                <p>{{post.excerpt}}</p>
                            </div>
                        {% endfor %}
                    </div>
                </div>
            </div>
        </div>
        {% include "../blocks/pagination.twig" %}
    </div>

{% endblock %}