histoiredunpied/layouts/partials/header.html

22 lines
636 B
HTML
Raw Normal View History

<header class="header" role="banner">
2020-02-11 09:02:51 +01:00
<div class="container">
<a href="/" class="accueil">
<img src="/logo.svg" alt="Logo d'Histoire d'un Pied" class="logo" />
2020-02-11 09:02:51 +01:00
</a>
<nav class="menu" role="navigation">
2020-02-11 09:02:51 +01:00
<ul>
2020-02-14 16:40:46 +01:00
{{ with .Site.GetPage "/accueil" }}
{{ $pages := .Resources.ByType "page" }}
{{ range sort $pages "Params.weight" }}
{{ if .Title }}
2020-02-14 16:40:46 +01:00
<li>
<a class="navigation-lien" href="#ancre_{{ .File.BaseFileName }}">{{ .Title }}</a>
2020-02-14 16:40:46 +01:00
</li>
{{ end }}
{{ end }}
2020-02-14 16:40:46 +01:00
{{ end }}
</ul>
2020-02-11 09:02:51 +01:00
</nav>
</div>
</header>