diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-08-27 13:14:43 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-08-27 13:14:43 +0200 |
| commit | c70607840ef98b35091ca0b23185b8fa1c170ca5 (patch) | |
| tree | 8305d4ac88bc6ef9370187810b3c377109a4d3e8 /themes/flog/layouts/partials/listing.html | |
| parent | 0f9a69bb83882c45d67b901bf9d897d7fd35eb2f (diff) | |
| download | pragblog-c70607840ef98b35091ca0b23185b8fa1c170ca5.tar.gz pragblog-c70607840ef98b35091ca0b23185b8fa1c170ca5.zip | |
integrate rating into meta params, show in listings
Diffstat (limited to 'themes/flog/layouts/partials/listing.html')
| -rw-r--r-- | themes/flog/layouts/partials/listing.html | 14 |
1 files changed, 13 insertions, 1 deletions
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 @@ </div> </section> <div class="card-action"> - <a href="{{ .RelPermalink }}">Weiterlesen…</a> + <a href="{{ .RelPermalink }}"> + Weiterlesen… + {{ if .Params.rating }} + <i class="material-icons right"> + {{ range seq .Params.rating }} + star + {{ end }} + {{ range seq (sub 5 (int .Params.rating)) }} + star_border + {{ end }} + </i> + {{ end }} + </a> </div> </div> </article> |
