feat: first version

This commit is contained in:
2020-03-26 18:48:07 +01:00
parent 25e491a4c7
commit c1e35272ec
40 changed files with 625 additions and 4 deletions

View 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>

View 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>

View 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>

View 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>

View File

@ -0,0 +1,2 @@
{{ $style := resources.Get "css/main.sass" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">