An Octopress plugin that allows the author to use stars to review
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
ReadMe.md
rating-stars.css
rating-stars.rb
star.gif

ReadMe.md

Description

This plugin is used to generate 0-5 stars. You can make partial stars, but I only recommend using 0.5 increments. An example usage includes reviewing movies, albums, etc...

Installation

  • Copy rating-stars.rb into your Plugin/ directory.
  • Copy rating-stars.css into your Stylesheets/ directory
  • Modify your .themes/classic/source/custom/head.html file to include the rating-stars.css file

Usage

{% rating #.# %}

Credit

This code is strongly based around how KomodoMedia tackled a similar problem in their blog post