_layouts/page.html in jekyll-theme-chirpy-4.3.4 vs _layouts/page.html in jekyll-theme-chirpy-5.0.0
- old
+ new
@@ -1,41 +1,64 @@
---
layout: default
-# The page layout
---
+{% include lang.html %}
+
<div class="row">
- <div class="col-12 col-lg-11 col-xl-8">
- <div id="page" class="post pb-5 pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4 mb-md-4">
- {% if page.dynamic_title %}
+
+ <!-- core -->
+ <div id="core-wrapper" class="col-12 col-lg-11 col-xl-8">
+ <div class="post pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4">
+
+ {% 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 %}
<h1 class="dynamic-title">
- {% if page.collection == 'tabs' %}
- {%- capture tab_key -%}{{ page.url | split: '/' }}{%- endcapture -%}
- {{- site.data.locales[lang].tabs[tab_key] | default: page.title -}}
- {% else %}
- {{- page.title -}}
- {% endif %}
+ {{ title }}
</h1>
<div class="post-content">
- {{ content }}
+ {{ _content }}
</div>
{% else %}
- {{ content }}
+ {{ _content }}
{% endif %}
- </div> <!-- #page -->
- </div><!-- .col-12 -->
- {% include panel.html %}
+ </div>
+ </div> <!-- #core-wrapper -->
+ <!-- pannel -->
+ <div id="panel-wrapper" class="col-xl-3 pl-2 text-muted topbar-down">
+
+ <div class="access">
+ {% include update-list.html %}
+ {% include trending-tags.html %}
+ </div>
+
+ {% for _include in layout.pannel_includes %}
+ {% assign _include_path = _include | append: '.html' %}
+ {% include {{ _include_path }} %}
+ {% endfor %}
+ </div>
+
</div>
-{% if site.disqus.comments and page.comments %}
+<!-- tail -->
+{% if layout.tail_includes %}
<div class="row">
<div class="col-12 col-lg-11 col-xl-8">
- <div class="pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4">
-
- {% include disqus.html %}
-
- </div> <!-- .pl-1 pr-1 -->
- </div> <!-- .col-12 -->
+ <div id="tail-wrapper" class="pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4">
+ {% for _include in layout.tail_includes %}
+ {% assign _include_path = _include | append: '.html' %}
+ {% include {{ _include_path }} %}
+ {% endfor %}
+ </div>
+ </div>
</div> <!-- .row -->
{% endif %}