Autoformatted some twigs

This commit is contained in:
pikim 2023-01-19 23:36:48 +01:00
parent 05a45ecb94
commit 3fe6574d0b
5 changed files with 149 additions and 144 deletions

View file

@ -1,7 +1,9 @@
{% 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 %}
{% macro pageLinkName(text) %}
{{ text|lower|replace({' ':'_'}) }}
{% endmacro %}
{% block menu %}
{% include 'partials/sidebar_right.html.twig' %}
@ -32,5 +34,3 @@
{% include 'partials/sidebar_left.html.twig' %}
{% endif %}
{% endblock %}

View file

@ -6,11 +6,12 @@
<h3>{{ 'FUTURE.FEATURED'|t }}</h3>
</header>
<div class="mini-posts">
{% for p in page.evaluate({'@taxonomy.category':miniposts_category}).order('header.order', 'asc').slice(0,miniposts_number) %}
<article class="mini-post">
<header>
<h3><a href="{{ p.url }}">{{ p.title }}</a></h3>
<h3>
<a href="{{ p.url }}">{{ p.title }}</a>
</h3>
{% if plugin.translate_date.enabled %}
<time class="published" datetime="{{ p.date|td(null, "Y-m-d") }}">{{ p.date|td }}</time>
{% else %}
@ -19,7 +20,6 @@
<a href="{{ p.url }}" class="author"><img src="{{ p.media[p.header.avatarImage].url}}" alt=""/></a>
</header>
<a href="{{ p.url }}" class="image">
{% if p.header.primaryImage %}
{{ p.media[p.header.primaryImage].cropZoom(1038,437).loading('lazy').html('',p.title)|raw}}
{% else %}
@ -27,9 +27,7 @@
{% endif %}
</a>
</article>
{% endfor %}
</div>
</section>
<!-- End of featured Section -->

View file

@ -5,8 +5,13 @@
{% if p.children.visible.count > 0 %}
<li class="{{ current_page }}">
<a class="dropdown-btn">
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
<span>{{ p.menu }}{% if p.routable ?? false %}&nbsp;<i class="fa fa-caret-down"></i>{% endif %}</span>
{% if p.header.icon %}
<i class="fa fa-{{ p.header.icon }}"></i>
{% endif %}
<span>{{ p.menu }}
{% if p.routable ?? false %}&nbsp;<i class="fa fa-caret-down"></i>
{% endif %}
</span>
</a>
<ul class="subitem_hide">
{{ _self.loop(p) }}
@ -15,7 +20,9 @@
{% else %}
<li class="{{ current_page }}">
<a href="{{ p.url }}">
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
{% if p.header.icon %}
<i class="fa fa-{{ p.header.icon }}"></i>
{% endif %}
<span>{{ p.menu }}</span>
</a>
</li>