You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123 lines
5.1 KiB
HTML
123 lines
5.1 KiB
HTML
{%- import "macros.html" as macros -%}
|
|
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
|
|
<!-- Enable responsiveness on mobile devices-->
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
|
|
|
<title>{% block title %}{% endblock title %}</title>
|
|
|
|
{% block js %}
|
|
{% endblock js %}
|
|
|
|
<!-- CSS -->
|
|
{% block css %}
|
|
<link rel="stylesheet" href="{{ get_url(path="book.css") | safe }}">
|
|
<link rel="stylesheet" href="{{ get_url(path="nav.css") | safe }}">
|
|
<link rel="stylesheet" href="{{ get_url(path="elements.css") | safe }}">
|
|
{% endblock css %}
|
|
|
|
{% block extra_head %}
|
|
{% endblock extra_head %}
|
|
</head>
|
|
|
|
<body>
|
|
{% include "nav.html" %}
|
|
<div class="menu {% if page and page.extra.disable_menu %}no-menu{% elif section and section.extra.disable_menu %}no-menu{% endif %}">
|
|
{% block before_menu %}
|
|
{% endblock before_menu %}
|
|
|
|
<nav role="navigation">
|
|
<ul>
|
|
{% if current_path != '/' %}
|
|
{% block menu %}
|
|
<li class="section-title {%- if macros::get_doc_section(attribute="path") == current_path %} active{% endif %}">
|
|
<a href="{{ macros::get_doc_section(attribute="permalink") | safe }}">{{ macros::get_doc_section(attribute="title") }}</a>
|
|
</li>
|
|
{{ macros::get_doc_section(attribute="subsections") | safe }}
|
|
{% endblock menu %}
|
|
{% endif %}
|
|
</ul>
|
|
</nav>
|
|
{% block after_menu %}
|
|
{% endblock after_menu %}
|
|
</div>
|
|
|
|
<div class="page">
|
|
<div class="page__header">
|
|
<div class="menu-flex">
|
|
<div class="menu-left">
|
|
<div class="menu-icon">
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
</div>
|
|
{% if config.build_search_index %}
|
|
<span class="search-icon">🔎</span>
|
|
{% endif %}
|
|
</div>
|
|
<div class="menu-right">
|
|
<span class="edit-icon"><a href="{{ config.extra.gitea_instance_url }}/42l/docs/_edit/main/content/{{ macros::get_edit_path() }}">📝 Éditer cette page</a></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="page__content">
|
|
{% if config.build_search_index %}
|
|
<div class="search-container">
|
|
<input id="search" type="search" placeholder="Rechercher…">
|
|
<div class="search-results">
|
|
<div class="search-results__header"></div>
|
|
<ul class="search-results__items"></ul>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% include "ariane.html" %}
|
|
<h1 class="page-title">{% if page %}{{ page.title }}{% elif section %}{{ section.title }}{% endif %}</h1>
|
|
{% if page.toc %}
|
|
{% include "toc.html" %}
|
|
{% endif %}
|
|
{% if page and page.extra.missing_content %}
|
|
{{ macros::alert(alert_type="todo") }}
|
|
{% elif section and section.extra.missing_content %}
|
|
{{ macros::alert(alert_type="todo") }}
|
|
{% endif %}
|
|
<div class="book-content markdown">
|
|
{% block content %}
|
|
{% endblock content %}
|
|
</div>
|
|
{% if current_path != '/' %}
|
|
{% include "linktable.html" %}
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="prev-link">
|
|
{% if current_path != '/' %}
|
|
{% block prev_link %}
|
|
{% endblock prev_link %}
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="next-link">
|
|
{% if current_path != '/' %}
|
|
{% block next_link %}
|
|
{% endblock next_link %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
{% block js_body %}
|
|
{% if config.build_search_index %}
|
|
<script type="text/javascript" src="{{ get_url(path="elasticlunr.min.js") | safe }}"></script>
|
|
<script type="text/javascript" src="{{ get_url(path="search_index.fr.js") | safe }}"></script>
|
|
<script type="text/javascript" src="{{ get_url(path="lunr.stemmer.support.js") | safe }}"></script>
|
|
<script type="text/javascript" src="{{ get_url(path="lunr.fr.js") | safe }}"></script>
|
|
{% endif %}
|
|
<script type="text/javascript" src="{{ get_url(path="book.js") | safe }}"></script>
|
|
{% endblock js_body %}
|
|
</body>
|
|
</html>
|