diff --git a/_layouts/page.html b/_layouts/page.html index 314efa2..cf998f0 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -4,30 +4,32 @@ layout: default {% include lang.html %} -
+
- {% 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 3249939..46cd15e 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,5 +1,6 @@ --- layout: page +refactor: true pannel_includes: - toc tail_includes: diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index 9683c67..32a3310 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -1075,7 +1075,7 @@ $sidebar-display: "sidebar-display"; } } - .row.alone { + div.row:first-of-type:last-of-type { // alone margin-bottom: 4rem; } }