summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/rating.html
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-05-08 23:19:49 +0200
committermms <michal@sapka.me>2024-05-08 23:20:31 +0200
commit5b323e282cac0e8b42e698d3a3ec8923edfcbc6e (patch)
tree234c53b383c0f89e27d66650e3b2e3e15971b215 /layouts/shortcodes/rating.html
parentad42d8473bd2d5cbce2a4d87b2cafd86ccdf3950 (diff)
feat: dbs super hero
Diffstat (limited to 'layouts/shortcodes/rating.html')
-rw-r--r--layouts/shortcodes/rating.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/shortcodes/rating.html b/layouts/shortcodes/rating.html
index 78a57fd..95d825d 100644
--- a/layouts/shortcodes/rating.html
+++ b/layouts/shortcodes/rating.html
@@ -25,8 +25,8 @@
<div class="rating">
My rating:<br>
- {{- range $i, $sequence := (seq 20) }}
- {{- if le (mul $sequence 25) (mul $rating 100)}}&#9726;{{- else}}&#9725;{{- end }}
+ {{- range $i, $sequence := (seq 15) }}
+ {{- if le (mul $sequence 25) (mul (sub $rating 1) 100)}}&#9726;{{- else}}&#9725;{{- end }}
{{- end }}
<br>
<b>{{ $rating }}/5</b>