{% extends 'base.html.twig' %}

{% block body %}
	{% if dev %}<!-- content -->{% endif %}
	<div class="content">
		
		{% if display.breadcrumb %}
			{% include 'partials/breadcrumb.twig' with breadcrumb %}
		{% endif %}

		<div class="content__header">
			
			{% if body.id == 'about' %}
				<figure class="portrait">
					<img class="portrait__image" loading="lazy" src="{{ path.medias }}/adrien-blot.{{ img_extension }}" alt="Adrien Blot" />
				</figure>
			{% endif %}

			<h1 class="h1 text-gradient">{{ title_page }}</h1>
			
			{% if subtitle_page %}<h2 class="h2 text-gradient">{{ subtitle_page|raw }}</h2>{% endif %}
		</div>

		{% if body.id == 'about' %}
			{% include 'pages/about.twig'%}
		{% endif %}

		{% if body.id == 'legal' %}
			{% for part in content %}
				{% if part.h %}<h2 class="h2 text-gradient">{{ part.h|raw }}</h2>{% endif %}
				<p class="p">{{ part.p|raw }}</p>
			{% endfor %}
		{% endif %}

		{% if body.id == 'sitemap' %}
			<ul class="sitemap">
				{% for item in sitemap %}
					<li class="sitemap__item">
						{% if item.type == 'link' %}
						<a href="{{ item.href }}" class="sitemap__link" title="{{ item.label }}">
							{% endif %}
							{{ item.label }}
							{% if item.type == 'link' %}
						</a>
						{% endif %}
					</li>
				{% endfor %}
			</ul>
		{% endif %}

	</div>
{% endblock %}