_layouts/page.html in another-theme-0.0.1 vs _layouts/page.html in another-theme-1.0.0
- old
+ new
@@ -1,11 +1,15 @@
---
layout: default
---
-<article>
- <header class="post-header">
- <h1 class="mb-lg">{{ page.title }}</h1>
- </header>
- <section class="post-content">
- {{ content }}
- </section>
-</article>
+<div class="{% if page.content_width == "large"%}col-12 col-xl-10{% else %}col-12 col-md-10 col-lg-9 col-xl-7{% endif %} pt-4 pt-lg-5 page-wrap" role="main">
+ <article>
+ {%- if page.page_title -%}
+ <header class="post-header mb-4">
+ <h1>{{ page.title }}</h1>
+ </header>
+ {%- endif -%}
+ <section {% if page.post_content %}class="post-content"{%- endif -%}>
+ {{ content }}
+ </section>
+ </article>
+</div>