Fix month substring

master
Quentin Duchemin 2021-10-15 01:19:26 +02:00
parent ace6994baf
commit 40d0d344db
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@
{{ end }}
<div class="card-footer-item is-size-7">
<time datetime="{{ .Date.Format `2006-01-02T15:04:05Z07:00` | safeHTML }}">
{{ .Date.Day }} {{ substr (index $.Site.Data.months_fr (printf "%d" .Date.Month)) 4 }} {{ .Date.Year }}
{{ .Date.Day }} {{ slicestr (index $.Site.Data.months_fr (printf "%d" .Date.Month)) 0 3 }} {{ .Date.Year }}
</time>&nbsp;&nbsp;{{ div .FuzzyWordCount 230 }} minutes
</div>
</footer>