{%- assign tsize = include.title | size -%} {%- for t in include.title -%} {%- if forloop.index == 2 %} ({%- endif -%} {%- assign thislangurl = false -%} {%- for u in include.url -%} {%- if u[0] == t[0] -%} {%- assign thislangurl = u[1] -%} {%- endif -%} {%- endfor -%} {%- if thislangurl -%} {%- assign lng = t[0] -%} {%- unless lng == "en" -%} [{{site.data.lang[lng].name}}/{{site.data.lang[lng].nativeName}}] {%- endunless -%} {%- else -%} {%- endif -%} {{- t[1] | xml_escape -}} {%- if thislangurl -%} {%- if include.external -%} {%- include_cached icon.html name="external-link" label="External Site" -%} {%- endif -%} {%- endif -%} {%- unless forloop.first -%} {%- unless forloop.last %}, {% endunless -%} {%- if forloop.last %}){% endif -%} {%- endunless -%} {%- endfor -%}