{{/* Renders stars for rating (e.g. 4.5) */}}
{{ $max := 5 }}
{{ $full := int (math.Floor .rating) }}
{{ $half := ge (modf .rating 1) 0.25 }}
{{ $empty := sub $max (add $full (cond $half 1 0)) }}
<span style="color:#fbc02d;">
  {{ range seq 1 $full }}&#9733;{{ end }}
  {{ if $half }}&#189;{{ end }}
  {{ range seq 1 $empty }}&#9734;{{ end }}
</span>
