mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Autoformatted some twigs
This commit is contained in:
parent
3667a1526b
commit
3318a38408
6 changed files with 108 additions and 95 deletions
|
@ -35,5 +35,4 @@
|
|||
{{ field.validate.required in ['on', 'true', 1] ? '<span class="required">*</span>' }}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -5,8 +5,13 @@
|
|||
{% if p.children.visible.count > 0 %}
|
||||
<li class="{{ current_page }}">
|
||||
<a>
|
||||
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
|
||||
<span>{{ p.menu }}{% if p.routable ?? false %} <i class="fa fa-angle-down"></i>{% endif %}</span>
|
||||
{% if p.header.icon %}
|
||||
<i class="fa fa-{{ p.header.icon }}"></i>
|
||||
{% endif %}
|
||||
<span>{{ p.menu }}
|
||||
{% if p.routable ?? false %} <i class="fa fa-angle-down"></i>
|
||||
{% endif %}
|
||||
</span>
|
||||
</a>
|
||||
<ul>
|
||||
{{ macros.nav_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>
|
||||
|
|
|
@ -11,20 +11,27 @@
|
|||
|
||||
<div class="row gtr-uniform">
|
||||
{% for feature in page.header.features %}
|
||||
|
||||
<div class="{{columns}}">
|
||||
<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>
|
||||
{% if feature.title %}<h3>{{feature.title}}</h3>{% 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 %}
|
||||
{% if feature.title %}
|
||||
<h3>{{feature.title}}</h3>
|
||||
{% 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>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
</section>
|
||||
<br>
|
||||
|
|
Loading…
Add table
Reference in a new issue