diff --git a/_includes/blog.html b/_includes/blog.html index b831bdd..ae9dea8 100644 --- a/_includes/blog.html +++ b/_includes/blog.html @@ -37,6 +37,17 @@
{{post.content}}
+ {% if post.layout == 'review' %} +
+ {% for counter in (1..5) %} + {% if counter <= post.rating %} + + {% else %} + + {% endif %} + {% endfor %} +
+ {% endif %} {% endfor %} diff --git a/_layouts/review.html b/_layouts/review.html new file mode 100644 index 0000000..cf05c6f --- /dev/null +++ b/_layouts/review.html @@ -0,0 +1,50 @@ +--- +layout: default +--- +
+
+
+
+

+ {% if page.external-url %} + {{ page.title }} + {% else %} + {{ page.title }} + {% endif %} +

+

vom +

+
+
+
+ {{ content }} +
+
+ {% for counter in (1..5) %} + {% if counter <= page.rating %} + + {% else %} + + {% endif %} + {% endfor %} +
+
+
\ No newline at end of file diff --git a/_sass/main.scss b/_sass/main.scss index e80b378..0c226fe 100644 --- a/_sass/main.scss +++ b/_sass/main.scss @@ -253,4 +253,16 @@ footer.site-footer { top: 8px; right: -10px; height: 25px; +} + +.reviewRating { + font-size: 2rem; +} + +.ratingUnset { + color: rgba(255, 144, 163, 0.25); +} + +.ratingSet { + color: rgba(255, 144, 163, 1); } \ No newline at end of file