{% assign dataArr = site.data.[page.folderName][lang][file] %} {% assign dataToShow = dataArr %} {% assign description = dataToShow.META | replace:"$variable", page.value | default: site.description %} {%- assign tool = page.tool -%} {%- assign data = site.data.rating.rating.tools -%} {%- for item in data -%} {%- if item.name ==tool -%} {%- assign name = item.name -%} {%- assign rating = item.rating -%} {%- assign votes = item.votes -%} {%- endif -%} {%- endfor -%}