48 lines
1.2 KiB
Twig
48 lines
1.2 KiB
Twig
{% extends 'partials/base.html.twig' %}
|
|
|
|
{% set show_onpage_menu = header.onpage_menu == true or header.onpage_menu is null %}
|
|
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %}
|
|
|
|
{% block javascripts %}
|
|
{% if show_onpage_menu %}
|
|
{% do assets.add('theme://js/singlepagenav.min.js') %}
|
|
{% endif %}
|
|
{{ parent() }}
|
|
{% endblock %}
|
|
|
|
{% block bottom %}
|
|
{{ parent() }}
|
|
{% if show_onpage_menu %}
|
|
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block header_navigation %}
|
|
{% include 'partials/navigation.html.twig' %}
|
|
{% include 'partials/taxonomylist.html.twig' with { taxonomy: 'category'} %}
|
|
{% endblock %}
|
|
|
|
{% block hero %}
|
|
{% for module in page.collection() if module.template == 'modular/hero' %}
|
|
<div id="{{ _self.pageLinkName(module.menu) }}"></div>
|
|
{{ module.content }}
|
|
{% endfor %}
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
|
|
<section id="body-wrapper">
|
|
<section id="container">
|
|
<div id="items" class="column">
|
|
<div class="content-item">
|
|
<div class="e-content {{page.title|lower}}">
|
|
{% for module in page.collection() %}
|
|
{{ module.content }}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</section>
|
|
{% endblock %}
|