feat: first version
This commit is contained in:
15
layouts/partials/actualite.html
Normal file
15
layouts/partials/actualite.html
Normal file
@ -0,0 +1,15 @@
|
||||
<div class="cell -6of12">
|
||||
<a href="{{ .Permalink }}" class="grid -middle">
|
||||
<div class="info grid -middle -center">
|
||||
<div>
|
||||
<h3 class="cell -middle">{{ .Title }}</h3>
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Day }} {{ index $.Site.Data.mois (printf "%d" .Date.Month) }} {{ .Date.Year }}</time>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
{{ $path := .Params.image }}
|
||||
{{ with .Resources.GetMatch $path }}
|
||||
{{ $img := .Fill "460x260" }}
|
||||
<div class="image"><img src="{{ $img.RelPermalink }}" /></div>
|
||||
{{ end }}
|
||||
</div>
|
13
layouts/partials/actualites.html
Normal file
13
layouts/partials/actualites.html
Normal file
@ -0,0 +1,13 @@
|
||||
<div class="grid actualites -middle">
|
||||
{{ if .IsHome }}
|
||||
{{ $pages := first 4 (where .Site.RegularPages "Type" "actualites") }}
|
||||
{{ range $pages }}
|
||||
{{ partial "actualite" . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ $pages := where .Site.RegularPages "Type" "actualites" }}
|
||||
{{ range $pages }}
|
||||
{{ partial "actualite" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
21
layouts/partials/footer.html
Normal file
21
layouts/partials/footer.html
Normal file
@ -0,0 +1,21 @@
|
||||
<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>
|
||||
</footer>
|
||||
</div>
|
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>
|
2
layouts/partials/style.html
Normal file
2
layouts/partials/style.html
Normal file
@ -0,0 +1,2 @@
|
||||
{{ $style := resources.Get "css/main.sass" | toCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
Reference in New Issue
Block a user