indent
This commit is contained in:
parent
ab5cd47c65
commit
2bc729f580
|
@ -1,29 +1,29 @@
|
|||
{% set menu = _navigation.menu('menu') %}
|
||||
{% set network = _navigation.menu('network') %}
|
||||
{% set avatar = setting('avatar_image') %}
|
||||
{%- set menu = _navigation.menu('menu') -%}
|
||||
{%- set network = _navigation.menu('network') -%}
|
||||
{%- set avatar = setting('avatar_image') -%}
|
||||
|
||||
<div class="wide-menu hidden-small">
|
||||
<div class="fixed-menu">
|
||||
<div class="align-center">
|
||||
<a href="{{ safe_path('blog_menu_posts', {_domain: _domain}) }}">
|
||||
{% if avatar %}
|
||||
<img src="{{ asset(avatar)|imagine_filter('site_avatar') }}" class="avatar round" alt="{{ avatar|file_attribute('title') }}">
|
||||
{% endif %}
|
||||
<a href="{{- safe_path('blog_menu_posts', {_domain: _domain}) -}}">
|
||||
{%- if avatar -%}
|
||||
<img src="{{- asset(avatar)|imagine_filter('site_avatar') -}}" class="avatar round" alt="{{- avatar|file_attribute('title') -}}">
|
||||
{%- endif -%}
|
||||
|
||||
{{ include('module/_logo.html.twig') }}
|
||||
{{- include('module/_logo.html.twig') -}}
|
||||
|
||||
<span class="d-none">Accueil Deblan Blog</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{% if menu %}
|
||||
<nav class="navigation {% if avatar %}navigation-with-avatar{% endif %}">
|
||||
{%- if menu -%}
|
||||
<nav class="navigation {%- if avatar -%}navigation-with-avatar{%- endif -%}">
|
||||
<ul>
|
||||
{%- for item in menu.rootNode.children({isVisible: true}) -%}
|
||||
<li>
|
||||
{%- set icon -%}
|
||||
{%- if item.attributes.icon is defined -%}
|
||||
<span class="deblan-icon deblan-icon-{{ item.attributes.icon.value }}"></span>
|
||||
<span class="deblan-icon deblan-icon-{{- item.attributes.icon.value -}}"></span>
|
||||
{%- elseif item.attributes.svg is defined -%}
|
||||
<span class="deblan-icon-svg">
|
||||
{{- item.attributes.svg.value|raw -}}
|
||||
|
@ -31,7 +31,7 @@
|
|||
{%- endif -%}
|
||||
{%- endset -%}
|
||||
|
||||
<a href="{{ safe_node_url(item, {_domain: _domain}) }}" {% if _store.isActiveNode(item, true) %}class="active"{% endif %} {% if item.hasExternalUrl %}target="_blank"{% endif %}>
|
||||
<a href="{{- safe_node_url(item, {_domain: _domain}) -}}" {%- if _store.isActiveNode(item, true) -%}class="active"{%- endif -%} {%- if item.hasExternalUrl -%}target="_blank"{%- endif -%}>
|
||||
{{- icon|raw -}}
|
||||
{{- item.label -}}
|
||||
</a>
|
||||
|
@ -39,13 +39,13 @@
|
|||
{%- endfor -%}
|
||||
</ul>
|
||||
</nav>
|
||||
{% endif %}
|
||||
{%- endif -%}
|
||||
|
||||
{%- if network -%}
|
||||
<ul class="links">
|
||||
{%- for item in network.rootNode.children({isVisible: true}) -%}
|
||||
<li class="link link-{{ item.attributes.icon.value }}">
|
||||
<a href="{{ safe_node_url(item) }}" class="deblan-icon deblan-icon-{{ item.attributes.icon.value }}" target="_blank">
|
||||
<li class="link link-{{- item.attributes.icon.value -}}">
|
||||
<a href="{{- safe_node_url(item) -}}" class="deblan-icon deblan-icon-{{- item.attributes.icon.value -}}" target="_blank">
|
||||
<span>{{- item.label -}}</span>
|
||||
</a>
|
||||
</li>
|
||||
|
@ -56,34 +56,32 @@
|
|||
</div>
|
||||
<div class="small-menu hidden-large hidden-medium visible-small">
|
||||
<nav class="navigation">
|
||||
{% if menu %}
|
||||
{%- if menu -%}
|
||||
<ul>
|
||||
{%- for item in menu.rootNode.children({isVisible: true}) -%}
|
||||
<li>
|
||||
<a href="{{ safe_node_url(item, {_domain: _domain}) }}" {% if _store.isActiveNode(item, true) %}class="active"{% endif %} {% if item.hasExternalUrl %}target="_blank"{% endif %}>
|
||||
<a href="{{- safe_node_url(item, {_domain: _domain}) -}}" {%- if _store.isActiveNode(item, true) -%}class="active"{%- endif -%} {%- if item.hasExternalUrl -%}target="_blank"{%- endif -%}>
|
||||
{%- set icon -%}
|
||||
{%- if item.attributes.icon is defined -%}
|
||||
<span class="deblan-icon deblan-icon-{{ item.attributes.icon.value }}"></span>
|
||||
{% elseif item.attributes.svg is defined %}
|
||||
<span class="deblan-icon deblan-icon-{{- item.attributes.icon.value -}}"></span>
|
||||
{%- elseif item.attributes.svg is defined -%}
|
||||
<span class="deblan-icon">
|
||||
{{ item.attributes.svg.value|raw }}
|
||||
{{- item.attributes.svg.value|raw -}}
|
||||
</span>
|
||||
{%- endif -%}
|
||||
{%- endset -%}
|
||||
|
||||
{{- icon|raw -}}
|
||||
|
||||
{{ item.label }}
|
||||
{{- item.label -}}
|
||||
</a>
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
|
||||
{% endif %}
|
||||
{%- endif -%}
|
||||
</nav>
|
||||
|
||||
<a href="{{ safe_path('blog_menu_posts') }}">
|
||||
{{ include('module/_logo.html.twig') }}
|
||||
<a href="{{- safe_path('blog_menu_posts') -}}">
|
||||
{{- include('module/_logo.html.twig') -}}
|
||||
</a>
|
||||
|
||||
<button class="menu-opener" aria-label="Menu">
|
||||
|
|
Loading…
Reference in a new issue