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

- old
+ new

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