{%- if page %} {%- set translation_count = page.translations | length %} {%- elif section %} {%- set translation_count = section.translations | length %} {%- endif -%} {%- if lang == "pt" %} {%- else %} {%- endif %} {%- set title_tail = " ~ " ~ config.title %} {%- if page.title %} {%- set title = page.title ~ title_tail %} {%- elif section.title %} {%- set title = section.title ~ title_tail %} {%- else %} {%- set title = config.title %} {%- endif %} {{ title }} {%- set description = page.content | default(value=config.description) | striptags | regex_replace(pattern="\n", rep=" ") | truncate(length=120) %} {% block rss -%} {%- if lang == "pt" %} {%- set locale_all_content = "Todo o conteúdo" %} {%- set locale_language_name = "Português" %} {% else %} {%- set locale_all_content = "All content" %} {%- set locale_language_name = "English" %} {%- endif %} {%- endblock %} {%- block extra_head %}{% endblock %} {%- if lang == "pt" %} Saltar para o conteúdo {%- else %} Skip to content {% endif -%} {% block header %}{% endblock %}
{% if current_path and translation_count > 1 %} {%- set english_path = current_path | regex_replace(pattern="^/pt", rep="") %}
{% if lang ==
{%- if lang == "pt" %}EN{% else %}PT {%- endif %}
{%- endif %}
{%- block content %}{% endblock %}