histoiredunpied/layouts/partials/header.html

20 lines
552 B
HTML

<header class="header">
<div class="container">
<a href="/" class="accueil">
<img src="/logo.svg" alt="logo" class="logo" />
</a>
<nav class="menu">
<ul>
{{ with .Site.GetPage "/accueil" }}
{{ $pages := .Resources.ByType "page" }}
{{ range sort $pages "Params.weight" }}
<li>
<a class="navigation-lien" href="#{{ .File.BaseFileName }}" title="{{ .Title }}">{{ .Title }}</a>
</li>
{{ end }}
{{ end }}
</ul>
</nav>
</div>
</header>