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>
|
Reference in New Issue
Block a user