diff --git a/_layouts/page.html b/_layouts/page.html index b94823b..cf998f0 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -9,25 +9,27 @@ layout: default
- {% 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 %} +
diff --git a/_layouts/post.html b/_layouts/post.html index ef2450e..6aa926d 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,5 +1,6 @@ --- layout: page +refactor: true pannel_includes: - toc tail_includes: