First version
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
</a>
|
||||
{{ $path := .Params.image }}
|
||||
{{ with .Resources.GetMatch $path }}
|
||||
{{ $img := .Fill "460x260" }}
|
||||
{{ $img := .Fill "460x260 center" }}
|
||||
<div class="image"><img src="{{ $img.RelPermalink }}" /></div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
@ -1,21 +1,14 @@
|
||||
<div class="container">
|
||||
<footer class="footer grid">
|
||||
<p class="cell">
|
||||
Les Toits du Val
|
||||
<br>
|
||||
🏠 8 rue Robert Lugnier 42260 St-Germain Laval
|
||||
<br>
|
||||
💌 bonjour@lestoitsduval.fr
|
||||
<br>
|
||||
📞 04 81 17 05 51
|
||||
</p>
|
||||
<p class="cell -right">
|
||||
🄯 2019
|
||||
<br>
|
||||
Construit avec
|
||||
<span role="img" aria-label="Coeur">💙</span>
|
||||
<br>
|
||||
en mode <a href="https://fr.wikipedia.org/wiki/Low-tech">Low-Tech</a>
|
||||
</p>
|
||||
<div class="container small">
|
||||
<footer class="footer grid -nowrap">
|
||||
<div class="cell">
|
||||
{{ with .Site.GetPage "/contact.md" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="cell -right">
|
||||
{{ with .Site.GetPage "/copyleft.md" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
@ -1,16 +1,3 @@
|
||||
<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">
|
||||
@ -23,8 +10,9 @@
|
||||
<div class="titleContainer">
|
||||
<a href="/">
|
||||
<h1>{{ .Site.Title }}</h1>
|
||||
<cite>Centrales villageoises <span class="noWrap">des Val d'Aix et Isable</span></cite>
|
||||
<cite>Centrales Villageoises <span class="noWrap">des Val d'Aix et Isable</span></cite>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
{{ partial "nav.html" . }}
|
||||
|
6
layouts/partials/js.html
Normal file
6
layouts/partials/js.html
Normal file
@ -0,0 +1,6 @@
|
||||
{{ $targetPath := "js/main.js" }}
|
||||
{{ $main := resources.Get $targetPath }}
|
||||
{{ with $main }}
|
||||
{{ $js := . | resources.Minify }}
|
||||
<script type="text/javascript" src="{{ $js.Permalink }}"></script>
|
||||
{{ end }}
|
20
layouts/partials/nav.html
Normal file
20
layouts/partials/nav.html
Normal file
@ -0,0 +1,20 @@
|
||||
<div class="nav">
|
||||
<input type="checkbox" id="menu_checkbox" onchange="toggleCheckbox(this)">
|
||||
<label for="menu_checkbox" class="icon-menu">
|
||||
<div class="icon"></div>
|
||||
</label>
|
||||
<nav class="container">
|
||||
{{ $title := .Title }}
|
||||
{{ $section := .CurrentSection.Title }}
|
||||
{{ $pages := where site.RegularPages "Type" "in" "page" }}
|
||||
{{ $pages := $pages | intersect (where site.RegularPages "Params.headless" "!=" true) }}
|
||||
{{ $pages := $pages | union (where site.Pages "Kind" "in" "section") }}
|
||||
<ul class="grid -center">
|
||||
{{ range $pages.ByWeight }}
|
||||
<li class="{{ if or (eq .Title $title) (eq .Title $section) }}active{{ end }}">
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
Reference in New Issue
Block a user