diff options
| -rw-r--r-- | content/rating/ratemal.md | 2 | ||||
| -rw-r--r-- | layouts/shortcodes/rate.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/content/rating/ratemal.md b/content/rating/ratemal.md index d8c9156..e9dcc93 100644 --- a/content/rating/ratemal.md +++ b/content/rating/ratemal.md @@ -11,4 +11,4 @@ Geiles Essen, {{< rate 5 >}} Optik Scheiße, {{< rate 0 >}}. -Mittelding ist {{< rate 2 halb >}}. +Mittelding ist {{< rate 2 >}}. diff --git a/layouts/shortcodes/rate.html b/layouts/shortcodes/rate.html index bdce5b7..130b28e 100644 --- a/layouts/shortcodes/rate.html +++ b/layouts/shortcodes/rate.html @@ -3,7 +3,7 @@ star {{ end }} {{ $len := 5 }} -{{ if and (.Get 1) (eq "halb" (.Get 1)) }}{{ $len := 4 }}{{ end }} +{{/* handle halves here */}} {{ if eq 4 $len }} star_half {{ end }} |
