Commit 41e5cc01 authored by Antoine Fauchié's avatar Antoine Fauchié
Browse files

edit: suppression des lignes mortes dans le code

parent f747f379
......@@ -3,7 +3,6 @@ layout: microtypo
---
<!DOCTYPE html>
{% include head.html %}
<body>
{% include header.html %}
<main id="main-chapitre">
......@@ -19,24 +18,16 @@ layout: microtypo
</header>
<button id="link-notices"><a href="#liste-notices">Voir les notices ↓</a></button>
<section id="main-content">
<div class="sommaire">
{% if page.partie == 1 %}{% include toc.html html=content %}{% endif %}
</div>
{% if page.partie == 1 %}<div class="sommaire">
{% include toc.html html=content %}
</div>{% endif %}
{{ content }}
</section>
<section id="liste-notices">
<h1 class="title-liste-notices">Notices <small>{{ page.title }}</small></h1>
<div class="liste-notices-contenu">
<!-- NOTICES PART 1 -->
{% if page.partie == 1 %}{% assign notices_classees = site.contenus | sort: 'order' %}
<ul class="notice-group">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 1 %}
<li class="notice">
{% if page.partie == 1 %}{% assign notices_classees = site.contenus | sort: 'order' %}<ul class="notice-group">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 1 %}<li class="notice">
<a href="{{ contenus.url }}">
<figure>
<img src="/images/{{ contenus.image_principale }}" alt="{{ contenus.title }}">
......@@ -45,16 +36,10 @@ layout: microtypo
<h1>{{ contenus.title }}</h1>
</a>
</li>{% endif %}{% endfor %}
</ul>
{% endif %}
<!-- NOTICES PART 2 -->
{% if page.partie == 2 %}{% assign notices_classees = site.contenus | sort: 'order' %}
<h2>Époque julio-claudienne</h2>
</ul>{% endif %}
{% if page.partie == 2 %}{% assign notices_classees = site.contenus | sort: 'order' %}<h2>Époque julio-claudienne</h2>
<ul class="notice-group">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 2 and contenus.sous_groupe == 1 %}
<li class="notice">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 2 and contenus.sous_groupe == 1 %}<li class="notice">
<a href="{{ contenus.url }}">
<figure>
<img src="/images/{{ contenus.image_principale }}" alt="{{ contenus.title }}">
......@@ -63,14 +48,10 @@ layout: microtypo
<h1>{{ contenus.title }}</h1>
</a>
</li>{% endif %}{% endfor %}
</ul>
{% endif %}
{% if page.partie == 2 %}{% assign notices_classees = site.contenus | sort: 'order' %}
<h2>Époque antonine </h2>
</ul>{% endif %}
{% if page.partie == 2 %}{% assign notices_classees = site.contenus | sort: 'order' %}<h2>Époque antonine </h2>
<ul class="notice-group">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 2 and contenus.sous_groupe == 2 %}
<li class="notice">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 2 and contenus.sous_groupe == 2 %}<li class="notice">
<a href="{{ contenus.url }}">
<figure>
<img src="/images/{{ contenus.image_principale }}" alt="{{ contenus.title }}">
......@@ -79,14 +60,10 @@ layout: microtypo
<h1>{{ contenus.title }}</h1>
</a>
</li>{% endif %}{% endfor %}
</ul>
{% endif %}
{% if page.partie == 2 %}{% assign notices_classees = site.contenus | sort: 'order' %}
<h2>Époque sévérienne </h2>
</ul>{% endif %}
{% if page.partie == 2 %}{% assign notices_classees = site.contenus | sort: 'order' %}<h2>Époque sévérienne </h2>
<ul class="notice-group">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 2 and contenus.sous_groupe == 3 %}
<li class="notice">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 2 and contenus.sous_groupe == 3 %}<li class="notice">
<a href="{{ contenus.url }}">
<figure>
<img src="/images/{{ contenus.image_principale }}" alt="{{ contenus.title }}">
......@@ -95,14 +72,10 @@ layout: microtypo
<h1>{{ contenus.title }}</h1>
</a>
</li>{% endif %}{% endfor %}
</ul>
{% endif %}
{% if page.partie == 2 %}{% assign notices_classees = site.contenus | sort: 'order' %}
<h2>L'Anarchie militaire </h2>
</ul>{% endif %}
{% if page.partie == 2 %}{% assign notices_classees = site.contenus | sort: 'order' %}<h2>L'Anarchie militaire </h2>
<ul class="notice-group">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 2 and contenus.sous_groupe == 4 %}
<li class="notice">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 2 and contenus.sous_groupe == 4 %}<li class="notice">
<a href="{{ contenus.url }}">
<figure>
<img src="/images/{{ contenus.image_principale }}" alt="{{ contenus.title }}">
......@@ -111,14 +84,10 @@ layout: microtypo
<h1>{{ contenus.title }}</h1>
</a>
</li>{% endif %}{% endfor %}
</ul>
{% endif %}
{% if page.partie == 2 %}{% assign notices_classees = site.contenus | sort: 'order' %}
<h2>Un portrait d'époque théodosienne </h2>
</ul>{% endif %}
{% if page.partie == 2 %}{% assign notices_classees = site.contenus | sort: 'order' %}<h2>Un portrait d'époque théodosienne </h2>
<ul class="notice-group">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 2 and contenus.sous_groupe == 5 %}
<li class="notice">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 2 and contenus.sous_groupe == 5 %}<li class="notice">
<a href="{{ contenus.url }}">
<figure>
<img src="/images/{{ contenus.image_principale }}" alt="{{ contenus.title }}">
......@@ -127,16 +96,9 @@ layout: microtypo
<h1>{{ contenus.title }}</h1>
</a>
</li>{% endif %}{% endfor %}
</ul>
{% endif %}
<!-- NOTICES PART 3 -->
{% if page.partie == 3 %}{% assign notices_classees = site.contenus | sort: 'order' %}
<ul class="notice-group">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 3 %}
<li class="notice">
</ul>{% endif %}
{% if page.partie == 3 %}{% assign notices_classees = site.contenus | sort: 'order' %}<ul class="notice-group">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 3 %}<li class="notice">
<a href="{{ contenus.url }}">
<figure>
<img src="/images/{{ contenus.image_principale }}" alt="{{ contenus.title }}">
......@@ -145,17 +107,10 @@ layout: microtypo
<h1>{{ contenus.title }}</h1>
</a>
</li>{% endif %}{% endfor %}
</ul>
{% endif %}
<!-- NOTICES PART 4 -->
{% if page.partie == 4 %}{% assign notices_classees = site.contenus | sort: 'order' %}
<h2>Les portraits de l’époque tétrarchique</h2>
</ul>{% endif %}
{% if page.partie == 4 %}{% assign notices_classees = site.contenus | sort: 'order' %}<h2>Les portraits de l’époque tétrarchique</h2>
<ul class="notice-group">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 4 and contenus.sous_groupe == 1 %}
<li class="notice">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 4 and contenus.sous_groupe == 1 %}<li class="notice">
<a href="{{ contenus.url }}">
<figure>
<img src="/images/{{ contenus.image_principale }}" alt="{{ contenus.title }}">
......@@ -164,14 +119,10 @@ layout: microtypo
<h1>{{ contenus.title }}</h1>
</a>
</li>{% endif %}{% endfor %}
</ul>
{% endif %}
{% if page.partie == 4 %}{% assign notices_classees = site.contenus | sort: 'order' %}
<h2>Travaux d’Hercule, médaillons des dieux et décor</h2>
</ul>{% endif %}
{% if page.partie == 4 %}{% assign notices_classees = site.contenus | sort: 'order' %}<h2>Travaux d’Hercule, médaillons des dieux et décor</h2>
<ul class="notice-group">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 4 and contenus.sous_groupe == 3 %}
<li class="notice">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 4 and contenus.sous_groupe == 3 %}<li class="notice">
<a href="{{ contenus.url }}">
<figure>
<img src="/images/{{ contenus.image_principale }}" alt="{{ contenus.title }}">
......@@ -180,14 +131,10 @@ layout: microtypo
<h1>{{ contenus.title }}</h1>
</a>
</li>{% endif %}{% endfor %}
</ul>
{% endif %}
{% if page.partie == 4 %}{% assign notices_classees = site.contenus | sort: 'order' %}
<h2>Travaux d’Hercule, médaillons des dieux et décor</h2>
</ul>{% endif %}
{% if page.partie == 4 %}{% assign notices_classees = site.contenus | sort: 'order' %}<h2>Travaux d’Hercule, médaillons des dieux et décor</h2>
<ul class="notice-group">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 4 and contenus.sous_groupe == 4 %}
<li class="notice">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 4 and contenus.sous_groupe == 4 %}<li class="notice">
<a href="{{ contenus.url }}">
<figure>
<img src="/images/{{ contenus.image_principale }}" alt="{{ contenus.title }}">
......@@ -196,14 +143,10 @@ layout: microtypo
<h1>{{ contenus.title }}</h1>
</a>
</li>{% endif %}{% endfor %}
</ul>
{% endif %}
{% if page.partie == 4 %}{% assign notices_classees = site.contenus | sort: 'order' %}
<h2>Restitution...</h2>
</ul>{% endif %}
{% if page.partie == 4 %}{% assign notices_classees = site.contenus | sort: 'order' %}<h2>Restitution...</h2>
<ul class="notice-group">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 4 and contenus.sous_groupe == 5 %}
<li class="notice">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 4 and contenus.sous_groupe == 5 %}<li class="notice">
<a href="{{ contenus.url }}">
<figure>
<img src="/images/{{ contenus.image_principale }}" alt="{{ contenus.title }}">
......@@ -212,14 +155,10 @@ layout: microtypo
<h1>{{ contenus.title }}</h1>
</a>
</li>{% endif %}{% endfor %}
</ul>
{% endif %}
{% if page.partie == 4 %}{% assign notices_classees = site.contenus | sort: 'order' %}
<h2>Décor...</h2>
</ul>{% endif %}
{% if page.partie == 4 %}{% assign notices_classees = site.contenus | sort: 'order' %}<h2>Décor...</h2>
<ul class="notice-group">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 4 and contenus.sous_groupe == 6 %}
<li class="notice">
{% for contenus in notices_classees %}{% if contenus.type == "notice" and contenus.partie == 4 and contenus.sous_groupe == 6 %}<li class="notice">
<a href="{{ contenus.url }}">
<figure>
<img src="/images/{{ contenus.image_principale }}" alt="{{ contenus.title }}">
......@@ -228,10 +167,8 @@ layout: microtypo
<h1>{{ contenus.title }}</h1>
</a>
</li>{% endif %}{% endfor %}
</ul>
{% endif %}
</ul>{% endif %}
</div>
</section>
</main>
{% include footer.html %}
\ No newline at end of file
{% include footer.html %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment