diff options
Diffstat (limited to 'layouts/shortcodes/rate.html')
| -rw-r--r-- | layouts/shortcodes/rate.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/layouts/shortcodes/rate.html b/layouts/shortcodes/rate.html new file mode 100644 index 0000000..bdce5b7 --- /dev/null +++ b/layouts/shortcodes/rate.html @@ -0,0 +1,13 @@ +<i class="material-icons"> +{{ range seq (.Get 0) }} +star +{{ end }} +{{ $len := 5 }} +{{ if and (.Get 1) (eq "halb" (.Get 1)) }}{{ $len := 4 }}{{ end }} +{{ if eq 4 $len }} +star_half +{{ end }} +{{ range seq (sub $len (int (.Get 0))) }} +star_border +{{ end }} +</i> |
