diff --git a/_config.yml b/_config.yml
index 4e8a8126aac4..2bbb4839fb73 100644
--- a/_config.yml
+++ b/_config.yml
@@ -383,6 +383,8 @@ defaults:
author: lsolesen
sidebar:
nav: blog
+ rating:
+ show: true
# _exercises
- scope:
path: ""
@@ -402,6 +404,8 @@ defaults:
nav: exercises
tag_archive_path: /exercises/tags/
category_archive_path: /exercises/categories/
+ rating:
+ show: true
# _methods
- scope:
path: ""
@@ -451,6 +455,8 @@ defaults:
category_archive_path: /anatomi/categories/
sidebar:
nav: "muscles"
+ rating:
+ show: true
# _pages
- scope:
path: ""
diff --git a/_includes/rating.html b/_includes/rating.html
index 3dee0e52f695..4097f282d83e 100644
--- a/_includes/rating.html
+++ b/_includes/rating.html
@@ -1,3 +1,4 @@
+{% if page.rating.show == 'true' %}
{% assign wordCount = page.content | number_of_words %}
{% if wordCount > 300 %}
{%- assign min = 9 -%}
@@ -14,7 +15,12 @@
{% assign rating = random_rating_final | default: 4.7 %}
{% assign worst_rating = 1 %}
{% assign best_rating = 5 %}
-{% assign rating_count = random_rating_count | default: 17 %}
+{% assign rating_count = random_rating_count | page.rating.count | default: 17 %}
+
+{% assign rating = include.rating | default: page.rating.rating | default: rating | default: 4.7 %}
+{% assign rating_round = rating | round | plus: 0 %}
+{% assign stars = "5,4,3,2,1" | split: "," %}
+{% assign votes = include.votes | default: page.rating.votes | default: rating_count | default: 11 %}
-{% assign rating = include.rating | default: rating | default: 4.7 %}
-{% assign rating_round = rating | round | plus: 0 %}
-{% assign stars = "5,4,3,2,1" | split: "," %}
-{% assign votes = include.votes | default: rating_count | default: 11 %}
{% endif %}
+{% endif %}