feat: first version
This commit is contained in:
30
layouts/partials/header.html
Normal file
30
layouts/partials/header.html
Normal file
@ -0,0 +1,30 @@
|
||||
<div class="nav">
|
||||
<nav class="container">
|
||||
<ul class="grid -center">
|
||||
{{ $pages := where site.RegularPages "Type" "in" "page" }}
|
||||
{{ $pages := $pages | union (where site.Pages "Kind" "in" "section") }}
|
||||
{{ range $pages.ByWeight }}
|
||||
<li><a href="{{ .Permalink }}" class="">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<ul>
|
||||
</ul>
|
||||
<header class="header" role="banner">
|
||||
<div class="container">
|
||||
<a href="/" class="logoContainer">
|
||||
{{ with (.Site.GetPage "_index.md").Resources.GetMatch "lestoitsduval-icon.png" }}
|
||||
{{ $img := . }}
|
||||
{{ $image := $img.Resize "200x200" }}
|
||||
<img src="{{ $image.RelPermalink }}" width="200" height="200" alt="Logo des Toits du Val" class="logo" />
|
||||
{{ end }}
|
||||
</a>
|
||||
<div class="titleContainer">
|
||||
<a href="/">
|
||||
<h1>{{ .Site.Title }}</h1>
|
||||
<cite>Centrales villageoises <span class="noWrap">des Val d'Aix et Isable</span></cite>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
Reference in New Issue
Block a user