feat: Bully
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-04-18 01:27:07 +02:00
parent 2a3f37e508
commit f0aeb335e1
18 changed files with 212 additions and 33 deletions

View File

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

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

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