This commit is contained in:
@ -8,9 +8,9 @@
|
||||
<th colspan="3">Production Greyzolon Duluth</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Energie du jour<strong>{{ lang.NumFmt 2 (div $lastDayData 1000) "- . ," }} kWh</strong></td>
|
||||
<td>Energie du mois<strong>{{ lang.NumFmt 2 (div $lastMonthData 1000000) "- . ," }} MWh</strong></td>
|
||||
<td>Production totale<strong>{{ lang.NumFmt 2 (div $lifeTimeData 1000000) "- . ," }} MWh</strong></td>
|
||||
<td>Energie du jour<strong>{{ lang.FormatNumberCustom 2 (div $lastDayData 1000) "- . ," }} kWh</strong></td>
|
||||
<td>Energie du mois<strong>{{ lang.FormatNumberCustom 2 (div $lastMonthData 1000000) "- . ," }} MWh</strong></td>
|
||||
<td>Production totale<strong>{{ lang.FormatNumberCustom 2 (div $lifeTimeData 1000000) "- . ," }} MWh</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="date" colspan="3">{{ $lastUpdateTime | time.Format ":date_medium" }} à {{ replace ($lastUpdateTime | time.Format ":time_short") ":" "h" }}</td>
|
||||
|
16
layouts/partials/projet.html
Normal file
16
layouts/partials/projet.html
Normal file
@ -0,0 +1,16 @@
|
||||
<div class="cell -6of12">
|
||||
<a href="{{ .Permalink }}" class="grid -middle">
|
||||
<div class="info grid -middle -center">
|
||||
<div>
|
||||
<h3 class="cell -middle">{{ .Title }}</h3>
|
||||
<time>{{ .Date.Year }}</time>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
{{ $path := .Params.image }}
|
||||
{{ $credit := .Params.image_credit }}
|
||||
{{ with .Resources.GetMatch $path }}
|
||||
{{ $img := .Fill "460x260 center" }}
|
||||
<div class="image"><img src="{{ $img.RelPermalink }}"{{ with $credit }} alt="{{ $credit }}"{{ end }} /></div>
|
||||
{{ end }}
|
||||
</div>
|
13
layouts/partials/projets.html
Normal file
13
layouts/partials/projets.html
Normal file
@ -0,0 +1,13 @@
|
||||
<div class="grid actualites -middle">
|
||||
{{ if .Page.IsHome }}
|
||||
{{ $pages := first 4 (where .Site.RegularPages "Type" "projets") }}
|
||||
{{ range $pages }}
|
||||
{{ partial "projet" . }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ $pages := where .Site.RegularPages "Type" "projets" }}
|
||||
{{ range $pages }}
|
||||
{{ partial "projet" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
36
layouts/projets/single.html
Normal file
36
layouts/projets/single.html
Normal file
@ -0,0 +1,36 @@
|
||||
{{ define "main" }}
|
||||
<div class="container small">
|
||||
{{ $path := .Params.image }}
|
||||
{{ $credit := .Params.image_credit }}
|
||||
{{ with .Resources.GetMatch $path }}
|
||||
{{ $img := .Fill "680x382 center" }}
|
||||
<img class="actu-image" src="{{ $img.RelPermalink }}"{{ with $credit }} alt="{{ . }}" title="{{ . }}"{{ end}} />
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
<hr>
|
||||
<h3 class="txt-center">Projets précédents et suivants</h3>
|
||||
</div>
|
||||
<div class="container">
|
||||
<aside class="grid actualites -middle">
|
||||
{{ with .NextInSection }}
|
||||
{{ partial "projet" . }}
|
||||
{{else}}
|
||||
<div class="cell -6of12 empty">
|
||||
<div class="info grid -middle -center">
|
||||
Vous avez un projet ?<br>N'hésitez pas à nous en parler !
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ with .PrevInSection }}
|
||||
{{ partial "projet" . }}
|
||||
{{else}}
|
||||
<div class="cell -6of12 empty">
|
||||
<div class="info grid -middle -center">
|
||||
Vous avez un projet ?<br>N'hésitez pas à nous en parler !
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
{{ end }}
|
7
layouts/section/projets.html
Normal file
7
layouts/section/projets.html
Normal file
@ -0,0 +1,7 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<div class="container small">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
{{ end }}
|
@ -9,7 +9,7 @@
|
||||
</p>
|
||||
<p>
|
||||
<input id="79fab" type="checkbox" name="l" value="79fabd65-a46d-4727-8437-85803390bfef" />
|
||||
<label for="79fab">Comptes rendus<br /><span>C'est la façon de suivre le plus facilement l'avancement des Toits du Val, nous envoyons le comptes rendus de notre réunion mensuelle que nous faisons le 3ème mercredi du mois à la maire de Saint-Germain Laval, ou vous êtes le bienvenue.</span></label>
|
||||
<label for="79fab">Comptes rendus<br /><span>C'est la façon de suivre le plus facilement l'avancement des Toits du Val, nous envoyons les comptes rendus de notre réunion mensuelle que nous faisons le 3ème mardi du mois à la maire de Saint-Germain Laval, ou vous êtes le bienvenue.</span></label>
|
||||
</p>
|
||||
<p>
|
||||
<input id="1809c" type="checkbox" name="l" value="1809caec-0888-47c0-a0dd-0e7e5e8e0a80" />
|
||||
|
8
layouts/shortcodes/projets.html
Normal file
8
layouts/shortcodes/projets.html
Normal file
@ -0,0 +1,8 @@
|
||||
</div>
|
||||
<div class="container small">
|
||||
<h2>Projets réalisés ou en cours de développement</h2>
|
||||
</div>
|
||||
<div class="container">
|
||||
{{ partial "projets.html" . }}
|
||||
</div>
|
||||
<div class="container small">
|
Reference in New Issue
Block a user