Skip to content
Snippets Groups Projects
Commit c35cc438 authored by alexandre.caldato's avatar alexandre.caldato
Browse files

ajout de variables de configuration

parent 1ae511e7
No related branches found
No related tags found
No related merge requests found
...@@ -4,26 +4,18 @@ ...@@ -4,26 +4,18 @@
<div class="fr-footer__brand fr-enlarge-link"> <div class="fr-footer__brand fr-enlarge-link">
<a href="/" title="Retour à l'accueil du site - Nom de l'entité (ministère, secrétariat d'état, gouvernement)"> <a href="/" title="Retour à l'accueil du site - Nom de l'entité (ministère, secrétariat d'état, gouvernement)">
<p class="fr-logo"> <p class="fr-logo">
Intitulé {{ config.theme.intitule }}
<br>officiel
</p> </p>
</a> </a>
</div> </div>
<div class="fr-footer__content"> <div class="fr-footer__content">
<p class="fr-footer__content-desc">Lorem [...] elit ut.</p> <p class="fr-footer__content-desc">{{ config.theme.footer.description }}</p>
<ul class="fr-footer__content-list"> <ul class="fr-footer__content-list">
{% for link in config.theme.footer.links %}
<li class="fr-footer__content-item"> <li class="fr-footer__content-item">
<a class="fr-footer__content-link" target="_blank" href="https://legifrance.gouv.fr">legifrance.gouv.fr</a> <a class="fr-footer__content-link" target="_blank" href="{{ link.url }}">{{ link.name }}</a>
</li>
<li class="fr-footer__content-item">
<a class="fr-footer__content-link" target="_blank" href="https://gouvernement.fr">gouvernement.fr</a>
</li>
<li class="fr-footer__content-item">
<a class="fr-footer__content-link" target="_blank" href="https://service-public.fr">service-public.fr</a>
</li>
<li class="fr-footer__content-item">
<a class="fr-footer__content-link" target="_blank" href="https://data.gouv.fr">data.gouv.fr</a>
</li> </li>
{% endfor %}
</ul> </ul>
</div> </div>
</div> </div>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</div> </div>
<div class="fr-header__navbar"> <div class="fr-header__navbar">
{% if not config.theme.no_search %} {% if not config.theme.header.no_search %}
<button class="fr-btn--search fr-btn" data-fr-opened="false" aria-controls="modal-541" id="button-542" title="Rechercher"> <button class="fr-btn--search fr-btn" data-fr-opened="false" aria-controls="modal-541" id="button-542" title="Rechercher">
Rechercher Rechercher
</button> </button>
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
<div class="fr-header__service"> <div class="fr-header__service">
<a href="/" title="{{ config.theme.titre }}"> <a href="/" title="{{ config.theme.titre }}">
<p class="fr-header__service-title"> <p class="fr-header__service-title">
{{ config.theme.titre }} {{ config.theme.header.titre }}
</p> </p>
</a> </a>
<p class="fr-header__service-tagline">{{ config.theme.soustitre }}</p> <p class="fr-header__service-tagline">{{ config.theme.header.soustitre }}</p>
</div> </div>
</div> </div>
<div class="fr-header__tools"> <div class="fr-header__tools">
......
...@@ -11,6 +11,23 @@ theme: ...@@ -11,6 +11,23 @@ theme:
locale: fr locale: fr
custom_dir: 'dsfr/' custom_dir: 'dsfr/'
menulateral: true menulateral: true
intitule: "Intitulé"
header:
titre: "Titre"
soustitre: "Sous-titre"
no_search: true
footer:
description: "Description à modifier"
links:
- name: legifrance.gouv.fr
url: https://legifrance.gouv.fr
- name: gouvernement.fr
url: https://gouvernement.fr
- name: service-public.fr
url: https://service-public.fr
- name: data.gouv.fr
url: https://data.gouv.fr
nav: nav:
- Home: index.md - Home: index.md
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment