_layouts/page.html in jekyll-theme-chirpy-6.0.0 vs _layouts/page.html in jekyll-theme-chirpy-6.0.1
- old
+ new
@@ -3,11 +3,15 @@
---
{% include lang.html %}
{% include origin-type.html %}
-<div class="row">
+{% if layout.tail_includes %}
+ {% assign has_tail = true %}
+{% endif %}
+
+<div class="row{% unless has_tail %} mb-5{% endunless %}">
<!-- core -->
<div id="core-wrapper" class="col-12 col-lg-11 col-xl-9 pe-xl-4">
{% capture padding %}
{% unless page.layout == 'home' %}px-1{% endunless %}
{% endcapture %}
@@ -50,10 +54,10 @@
{% endfor %}
</div>
</div>
<!-- tail -->
-{% if layout.tail_includes %}
+{% if has_tail %}
<div class="row">
<div id="tail-wrapper" class="col-12 col-lg-11 col-xl-9 px-3 pe-xl-4 mt-5">
{% for _include in layout.tail_includes %}
{% assign _include_path = _include | append: '.html' %}
{% include {{ _include_path }} lang=lang %}