{% for translation in site.translations %} {%- assign hreflang = translation.url | replace: '/index-', '' | replace: '.html', '' -%} {%- endfor -%}