- {% if page.dynamic_title or page.collection == 'tabs' %}
-
- {%- capture tab_key -%}{{ page.url | split: '/' }}{%- endcapture -%}
- {{- site.data.locales[lang].tabs[tab_key] | default: page.title -}}
-
-
- {% if page.layout == 'page' %}
- {% include refactor-content.html content=content %}
- {% else %}
- {{ content }}
- {% endif %}
-
- {% else %}
- {% if page.layout == 'post' %}
+
+ {% capture _content %}
+ {% if layout.refactor or page.layout == 'page' %}
{% include refactor-content.html content=content %}
{% else %}
{{ content }}
{% endif %}
+ {% endcapture %}
+
+ {% if page.layout == 'page' or page.collection == 'tabs'%}
+ {% assign title = site.data.locales[lang].tabs[tab_key] | default: page.title %}
+
+ {{ title }}
+
+
+ {{ _content }}
+
+ {% else %}
+ {{ _content }}
{% endif %}
+