_includes/Rating/structureddata.html in appscms-tools-theme-0.8.2 vs _includes/Rating/structureddata.html in appscms-tools-theme-0.8.3

- old
+ new

@@ -21,19 +21,29 @@ "image":"{{site.siteurl}}{{site.logo}}", "aggregateRating": { "@type": "AggregateRating", "worstRating":"1", "bestRating":"5", - "ratingValue": {%- if rating=='NaN' -%} - "5" + "ratingValue": + {%- if rating -%} + {%- if rating=='NaN' -%} + "5" + {%- else -%} + "{{rating}}" + {%- endif -%} {%- else -%} - "{{rating}}" + "5" {%- endif -%}, - "ratingCount": {%- if votes== 0 -%} - "1" + "ratingCount": {%- if votes -%} + {%- if votes== 0 -%} + "1" + {%- else -%} + "{{votes}}" + {%- endif -%} {%- else -%} - "{{votes}}" + "1" {%- endif -%} + }, "offers": { "@type": "Offer", "price": "0.00", "priceCurrency": "USD"