diff options
author | mms <michal@sapka.me> | 2024-05-08 23:19:49 +0200 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-05-08 23:20:31 +0200 |
commit | 5b323e282cac0e8b42e698d3a3ec8923edfcbc6e (patch) | |
tree | 234c53b383c0f89e27d66650e3b2e3e15971b215 /layouts/shortcodes/rating.html | |
parent | ad42d8473bd2d5cbce2a4d87b2cafd86ccdf3950 (diff) |
feat: dbs super hero
Diffstat (limited to 'layouts/shortcodes/rating.html')
-rw-r--r-- | layouts/shortcodes/rating.html | 4 |
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)}}◾{{- else}}◽{{- end }} + {{- range $i, $sequence := (seq 15) }} + {{- if le (mul $sequence 25) (mul (sub $rating 1) 100)}}◾{{- else}}◽{{- end }} {{- end }} <br> <b>{{ $rating }}/5</b> |