Sha256: 9088af57448976c186dc4aae0970171663f9a013e599e033b2032dd985ec6dbf

Contents?: true

Size: 858 Bytes

Versions: 13

Compression:

Stored size: 858 Bytes

Contents

{% assign tsize = include.title | size %}
{% for t in include.title %}
  {% if forloop.index == 1 %}
    <ul class="sublang {% if include.class %} {{include.class}}{% endif %}">
  {% 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]%}
  <li lang="{{lng}}">
    <span>{{site.data.lang[lng].name}}: </span>
    <a href="{{thislangurl}}" hreflang="{{lng}}">
      {{t[1]}}
      {% unless lng == "en" %}
        (<span lang="{{lng}}">{{site.data.lang[lng].nativeName}}</span>)
      {% endunless %}
      {% if include.external %}{% include_cached icon.html name="external-link" label="External Site" %}{% endif %} </a>
  </li>

{% endif %}

  {% if forloop.last %}</ul>{% endif %}
{% endfor %}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
wai-website-theme-1.2 _includes/multilang-list-policy-links.html
wai-website-theme-0.1.6 _includes/multilang-list-policy-links.html
wai-website-theme-0.1.5 _includes/multilang-list-policy-links.html
wai-website-theme-0.1.4 _includes/multilang-list-policy-links.html
wai-website-theme-0.1.3.1 _includes/multilang-list-policy-links.html
wai-website-theme-0.1.3 _includes/multilang-list-policy-links.html
wai-website-theme-0.1.2.7 _includes/multilang-list-policy-links.html
wai-website-theme-0.1.2.6 _includes/multilang-list-policy-links.html
wai-website-theme-0.1.2.5 _includes/multilang-list-policy-links.html
wai-website-theme-0.1.2.1 _includes/multilang-list-policy-links.html
wai-website-theme-0.1.2 _includes/multilang-list-policy-links.html
wai-website-theme-0.1.1 _includes/multilang-list-policy-links.html
wai-website-theme-0.1.0 _includes/multilang-list-policy-links.html