2022-09-29 17:00:28 +00:00
|
|
|
<header class="site-header">
|
|
|
|
<div class="site-header__content page-container">
|
|
|
|
<a class="site-header__title" href="/">
|
2023-05-21 21:05:00 +00:00
|
|
|
{{ partial "helpers/svg" (dict "path" "all_logos/horizontal_white_transparent" "class" "site-header__logo") }}
|
2023-05-21 20:39:56 +00:00
|
|
|
<!-- {{ $image := resources.Get "images/all_logos/horizontal_white_transparent.svg" }} -->
|
|
|
|
<!-- <img class="site-header__logo" -->
|
|
|
|
<!-- src="{{ $image.RelPermalink }}" /> -->
|
2022-09-29 17:00:28 +00:00
|
|
|
</a>
|
2023-04-10 17:25:39 +00:00
|
|
|
<nav class="site-header__nav desktop-nav">
|
2023-07-06 20:28:16 +00:00
|
|
|
{{ if eq .File.Dir "/" }}
|
|
|
|
<ul class="inline-menu-list">
|
2023-07-10 11:01:05 +00:00
|
|
|
<li><a href="#section-history">Histoire</a></li>
|
|
|
|
<li><a href="#section-organization">L'association</a></li>
|
|
|
|
<li><a href="#section-news">Actualités</a></li>
|
|
|
|
<li><a href="/images">Galerie</a></li>
|
2023-07-06 20:28:16 +00:00
|
|
|
</ul>
|
|
|
|
{{ end }}
|
|
|
|
{{ if not (eq .File.Dir "/") }}
|
2023-04-10 19:55:40 +00:00
|
|
|
<ul class="inline-menu-list">
|
|
|
|
<li><a href="/actualites">Actualités</a></li>
|
|
|
|
<li><a href="/association">L'association</a></li>
|
|
|
|
<li><a href="/histoires">Histoire</a></li>
|
2023-04-20 09:52:40 +00:00
|
|
|
<li><a href="/images">Galerie</a></li>
|
2023-04-10 19:55:40 +00:00
|
|
|
</ul>
|
2023-07-06 20:28:16 +00:00
|
|
|
{{ end }}
|
2022-09-29 17:00:28 +00:00
|
|
|
</nav>
|
2023-04-10 17:25:39 +00:00
|
|
|
<div class="burger-menu">
|
|
|
|
<div class="burger-button-container">
|
|
|
|
<input type="checkbox" id="navi-toggle" class="checkbox" />
|
|
|
|
<label for="navi-toggle" class="burger-button">
|
|
|
|
<span class="icon"> </span>
|
|
|
|
</label>
|
|
|
|
<div class="background"> </div>
|
|
|
|
<nav class="nav">
|
|
|
|
<ul class="list">
|
|
|
|
<li><a href="/actualites">Actualités</a></li>
|
|
|
|
<li><a href="/association">L'association</a></li>
|
|
|
|
<li><a href="/histoires">Histoire</a></li>
|
2023-04-20 09:52:40 +00:00
|
|
|
<li><a href="/images">Galerie</a></li>
|
2023-04-10 17:25:39 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-29 17:00:28 +00:00
|
|
|
</div>
|
2022-09-28 20:49:59 +00:00
|
|
|
</header>
|
2023-05-21 20:46:45 +00:00
|
|
|
|
|
|
|
<script>
|
|
|
|
// workaround to limit the page scroll if the mobile nav is opened
|
|
|
|
const nav_button = document.getElementById("navi-toggle")
|
|
|
|
nav_button.addEventListener("change", event => {
|
|
|
|
if (event.target.checked) {
|
|
|
|
document.body.style.overflow = "hidden";
|
|
|
|
}
|
|
|
|
if (!event.target.checked) {
|
|
|
|
document.body.style.overflow = "initial";
|
|
|
|
}
|
|
|
|
})
|
|
|
|
</script>
|