{%- if page.tool -%} {%- assign tool = page.tool -%} {%- assign data = site.data.rating.rating.tools -%} {% assign file = page.fileName %} {% assign lang = page.lang %} {% assign folder = page.folderName %} {% assign Data= site.data[folder][lang][file] %}
rating-img
{{Data.rate | default: 'Rate this tool' }} :
{%- for item in data -%} {%- if item.name ==tool -%} {%- assign rating = item.rating -%} {%- assign votes = item.votes -%} {%- endif -%} {%- endfor -%} {{rating}}/5   {{votes}} {{Data.votes | default: 'votes' }}
{%- endif -%}