{% assign file = page.fileName %} {% assign folder = page.folderName %} {% assign lang = page.lang %} {% assign shareData=site.data[folder][lang][file] %} {%- if site.data.blog.share.platforms -%}
{% assign url = page.url | relative_url | prepend: site.url %} {% for share in site.data.blog.share.platforms %} {% assign link = share.link | replace: 'URL', url %} {{page.title}} {% endfor %}
{%- endif -%}