From c70607840ef98b35091ca0b23185b8fa1c170ca5 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 27 Aug 2016 13:14:43 +0200 Subject: integrate rating into meta params, show in listings --- themes/flog/layouts/partials/listing.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'themes/flog/layouts/partials/listing.html') diff --git a/themes/flog/layouts/partials/listing.html b/themes/flog/layouts/partials/listing.html index 44849bd..58c7697 100644 --- a/themes/flog/layouts/partials/listing.html +++ b/themes/flog/layouts/partials/listing.html @@ -20,7 +20,19 @@
- Weiterlesen… + + Weiterlesen… + {{ if .Params.rating }} + + {{ range seq .Params.rating }} + star + {{ end }} + {{ range seq (sub 5 (int .Params.rating)) }} + star_border + {{ end }} + + {{ end }} +
-- cgit v1.3.1