Sha256: 761cd841301f4f4b1c2457a58b1147fcb65eedbba2e8ef3bc3ed9053dc14ac39

Contents?: true

Size: 1.28 KB

Versions: 1

Compression:

Stored size: 1.28 KB

Contents

<!-- http://icons2.iconarchive.com/show/flat-europe-flag-icons-by-custom-icon-design.html -->
{% assign posts=site.posts | where:"ref", page.ref | sort: 'lang' %}
{% assign this_page_lang = page.lang %}
{% assign posts_number = posts | size %}
{% if posts_number > 1 %}
<div style="text-align: right;">
{% for post in posts %}
  {% if post.ref and post.lang != this_page_lang %}
  <span style="padding-left: 6px; padding-right: 6px;">
    <a href="{{ post.url | prepend: site.baseurl }}">
      {{ post.lang }}
      <!-- <img src="{{ post.lang | prepend: 'assets/img/' }}.png" alt="{{ post.lang }}" class="{{ post.lang }}"> -->
    </a>
  </span>
  {% endif %}
{% endfor %}
</div>
{% endif %}

{% assign pages = site.pages | where:"ref", page.ref | sort: 'lang' %}
{% assign pages_number = pages | size %}
{% if pages_number > 1 %}
<div style="text-align: right; padding-bottom: 8px;">
{% for page in pages %}
  {% if page.ref and page.lang != this_page_lang %}
  <span style="padding-left: 6px; padding-right: 6px;">
    <a href="{{ page.url | prepend: site.baseurl }}">
      {{ page.lang }}
      <!-- <img src="{{ page.lang | prepend: 'assets/img/' }}.png" alt="{{ page.lang }}" class="{{ page.lang }}"> -->
    </a>
  </span>
  {% endif %}
{% endfor %}
</div>
{% endif %}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-theme-simple-blog-0.0.2 _includes/language-selector.html