This commit is contained in:
2019-02-04 18:20:04 +01:00
parent a9ece64292
commit cdd86a3845
12 changed files with 353 additions and 305 deletions
@@ -26,7 +26,7 @@
{% endfor %}
{% for mitem in site.menu %}
<li>
<a {% if mitem.class %}class="{{ mitem.class }}"{% endif %} href="{{ mitem.url }}">
<a {% if mitem.class %} class="{{ mitem.class }}" {% endif %} href="{{ mitem.url }}">
{% if mitem.icon %}<i class="fa fa-{{ mitem.icon }}"></i>{% endif %}
{{ mitem.text }}
</a>
@@ -46,77 +46,32 @@
{% endblock %}
{% block body %}
<section id="{{ macro.pageLinkName(page.menu) }}">
<section id="{{ macro.pageLinkName(page.menu) }}" class="section">
{{page.content}}
</section>
{% for module in page.collection() if module.template == 'blog' %}
<section id="{{ macro.pageLinkName(module.menu)|hyphenize }}">
<h2>{{ module.title }}</h2>
<div class="arrow"></div>
<div>
<section id="{{ macro.pageLinkName(module.menu)|hyphenize }}" class="section">
<div class="content section-content">
<h2>{{ module.title }}</h2>
<div class="arrow"></div>
{{ module.content|raw }}
</div>
{% for child in module.collection %}
{% set gal = child.header.blog.config %}
<div class="sous-section">
{% for child in module.collection %}
{% set gal = child.header.blog.config %}
<section id="{{ macro.pageLinkName(child.menu)|hyphenize }}">
{% if gal %}
{% include 'partials/blog/sous-gal.html.twig' %}
{% else %}
{% include 'partials/blog/no-gal.html.twig' %}
{% endif %}
{% endfor %}
</div>
{% if child.title %}
<div class="title">
<h3>{{ child.title }}</h3>
</div>
{% endif %}
{% if child.content %}
<div class="content">
{{ child.content }}
</div>
{% endif %}
<div class="images">
{% for images in child.media.images %}
{{ images.html }}
<div class="content">
{{ child.content }}
</div>
{% endfor %}
</div>
{% if gal %}
<div class="owl-carousel">
{% for item in child.collection %}
<div class="galerie">
{% for images in item.media.images %}
<div class="images">
{{ images.html }}
</div>
{% endfor %}
<div class="content">
{{ item.content }}
</div>
</div>
{% endfor %}
</div>
{% else %}
{% for item in child.collection %}
<h4>{{ item.title }}</h4>
{{ item.content }}
<div class="images">
{% for images in item.media.images %}
{{ images.html }}
{% endfor %}
</div>
{% endfor %}
{% endif %}
</section>
{% endfor %}
</div>
</section>
{% endfor %}
{% endblock %}
@@ -79,7 +79,7 @@
<p>{{ theme_config.profile.name | default(site.author.name) }}</p>
</div>
<div id="pro">
<p>{{ site.author.profession }}</p>
<p>{{ site.metadata.Description }}</p>
</div>
</div>
@@ -0,0 +1,38 @@
<section id="{{ macro.pageLinkName(child.menu)|hyphenize }}" class="no-gal">
{% if child.title %}
<div class="title">
<h3>{{ child.title }}</h3>
</div>
{% endif %}
{% if child.content %}
<div class="content">
{{ child.content }}
</div>
{% endif %}
<div class="images">
{% for images in child.media.images %}
{% if images.html %}
{{ images.html }}
{% if child.content %}
<div class="content">
{{ child.content }}
</div>
{% endif %}
{% endif %}
{% endfor %}
</div>
{% for item in child.collection %}
<h4>{{ item.title }}</h4>
{{ item.content }}
<div class="images">
{% for images in item.media.images %}
{{ images.html }}
{% endfor %}
</div>
{% endfor %}
</section>
@@ -0,0 +1,39 @@
<section id="{{ macro.pageLinkName(child.menu)|hyphenize }}" class="sous-gal">
{% if child.title %}
<div class="title">
<h3>{{ child.title }}</h3>
</div>
{% endif %}
{% if child.content %}
<div class="content">
{{ child.content }}
</div>
{% endif %}
<div class="images">
{% for images in child.media.images %}
{{ images.html }}
<div class="content">
{{ child.content }}
</div>
{% endfor %}
</div>
<div class="owl-carousel">
{% for item in child.collection %}
<div class="galerie">
{% for images in item.media.images %}
<div class="images">
{{ images.html }}
</div>
{% endfor %}
<div class="content">
{{ item.content }}
</div>
</div>
{% endfor %}
</div>
</section>