mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-30 15:22:09 +00:00
Fix: make 1hr+ reading time clear
the comma was confusing, switch to the word "and".
This commit is contained in:
parent
c5eb934555
commit
b5dd4f21ab
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ About
|
||||||
{{- if gt . 60 -}}
|
{{- if gt . 60 -}}
|
||||||
{{- $hours := div . 60 -}}
|
{{- $hours := div . 60 -}}
|
||||||
{{- $minutes := mod . 60 -}}
|
{{- $minutes := mod . 60 -}}
|
||||||
{{- $displayTime = (printf "%d hour, %d minute" $hours $minutes) -}}
|
{{- $displayTime = (printf "%d hour and %d minute" $hours $minutes) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
; a{{ if lt . 10 }} short{{ else if and (gt . 20) (lt . 30) }} somewhat long{{ else if and (gt . 29) (lt . 60) }} long{{ else if gt . 59 }} very long{{ end }}
|
; a{{ if lt . 10 }} short{{ else if and (gt . 20) (lt . 30) }} somewhat long{{ else if and (gt . 29) (lt . 60) }} long{{ else if gt . 59 }} very long{{ end }}
|
||||||
<time itemprop="timeRequired" datetime="PT{{ . }}M">{{ $displayTime }} minute</time> read
|
<time itemprop="timeRequired" datetime="PT{{ . }}M">{{ $displayTime }} minute</time> read
|
||||||
|
|
Loading…
Reference in a new issue