{% if page.excerpt and page.excerpt != blank %} {% assign page_description = page.excerpt | strip_html | strip_newlines | truncate: 160 %} {% elsif page.summary and page.summary != blank %} {% assign page_description = page.summary | strip_html | strip_newlines | truncate: 160 %} {% else %} {% assign page_description = site.data.strings.index.introduction %} {% endif %} {% if page.icon and page.icon != blank %} {% else %} {% endif %} {% comment %} the line below uses single quotes to prevet jekyll-polyglot from adding a language to the url {% endcomment -%} {% if page.package_name %} {% else %} {% endif %} {%- comment %} the code below uses single quotes to prevet jekyll-polyglot from adding a language to the url {% endcomment -%} {% for lang in site.languages -%} {% if lang == site.default_lang -%} {% continue -%} {% endif -%} {%- if site.baseurl == '' and page.package_name %} {%- elsif site.baseurl == '' %} {% endif -%} {% endfor -%} {%- if page.package_name %} {% else %} {% endif -%}