Autoformatted some twigs

This commit is contained in:
pikim 2023-01-20 00:03:51 +01:00
parent 3667a1526b
commit 3318a38408
6 changed files with 108 additions and 95 deletions

View file

@ -35,5 +35,4 @@
{{ field.validate.required in ['on', 'true', 1] ? '<span class="required">*</span>' }} {{ field.validate.required in ['on', 'true', 1] ? '<span class="required">*</span>' }}
</label> </label>
</div> </div>
{% endblock %} {% endblock %}

View file

@ -5,8 +5,13 @@
{% if p.children.visible.count > 0 %} {% if p.children.visible.count > 0 %}
<li class="{{ current_page }}"> <li class="{{ current_page }}">
<a> <a>
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %} {% if p.header.icon %}
<span>{{ p.menu }}{% if p.routable ?? false %}&nbsp;<i class="fa fa-angle-down"></i>{% endif %}</span> <i class="fa fa-{{ p.header.icon }}"></i>
{% endif %}
<span>{{ p.menu }}
{% if p.routable ?? false %}&nbsp;<i class="fa fa-angle-down"></i>
{% endif %}
</span>
</a> </a>
<ul> <ul>
{{ macros.nav_loop(p) }} {{ macros.nav_loop(p) }}
@ -15,7 +20,9 @@
{% else %} {% else %}
<li class="{{ current_page }}"> <li class="{{ current_page }}">
<a href="{{ p.url }}"> <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> <span>{{ p.menu }}</span>
</a> </a>
</li> </li>

View file

@ -11,20 +11,27 @@
<div class="row gtr-uniform"> <div class="row gtr-uniform">
{% for feature in page.header.features %} {% for feature in page.header.features %}
<div class="{{columns}}"> <div class="{{columns}}">
<article class="box"> <article class="box">
{% if feature.image %}<span class="image fit"><img src="{{page.media[feature.image].url}}" alt="{{feature.title}}" /></span>{% endif %} {% if feature.image %}
<span class="image fit"><img src="{{page.media[feature.image].url}}" alt="{{feature.title}}"/></span>
{% endif %}
<header> <header>
{% if feature.title %}<h3>{{feature.title}}</h3>{% endif %} {% if feature.title %}
{% if feature.text %}<p>{{feature.text|raw}}</p>{% endif %} <h3>{{feature.title}}</h3>
{% if feature.buttonurl %}<p><a href="{{feature.buttonurl}}" class="button fit" target={% if feature.buttonurl_target %}"_blank"{% endif%}>{{feature.buttontext}}</a></p>{% endif %} {% endif %}
{% if feature.text %}
<p>{{feature.text|raw}}</p>
{% endif %}
{% if feature.buttonurl %}
<p>
<a href="{{feature.buttonurl}}" class="button fit" target={% if feature.buttonurl_target %} "_blank" {% endif%}>{{feature.buttontext}}</a>
</p>
{% endif %}
</header> </header>
</article> </article>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
</section> </section>
<br> <br>