{% 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 %} {% endblock %} {% if lang == "pt" %} Saltar para o conteúdo {% else %} Skip to content {% endif %} {% block header %}{% endblock %}
{% if current_path %} {% set prepared_path = current_path | replace(from="pt/", to="") %} {% if lang == "pt" %} English {% else %} Português {% endif %}{% endif %}
{% if current_path and translation_count > 1 %} {% set english_path = current_path | regex_replace(pattern="^/pt", rep="") %}
Language icon{% if lang == "pt" %}EN{% else %}PT {% endif %}
{% endif %}
{% block content %} {% endblock %}