mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-12-18 05:41:31 +00:00
refactor: optimize the basic layouts
This commit is contained in:
@@ -4,14 +4,6 @@ layout: default
|
||||
|
||||
{% include lang.html %}
|
||||
|
||||
{% capture _content %}
|
||||
{% if layout.refactor or page.layout == 'page' %}
|
||||
{% include refactor-content.html content=content lang=lang %}
|
||||
{% else %}
|
||||
{{ content }}
|
||||
{% endif %}
|
||||
{% endcapture %}
|
||||
|
||||
<article class="px-1">
|
||||
{% if page.layout == 'page' or page.collection == 'tabs' %}
|
||||
{% assign tab_key = page.title | downcase %}
|
||||
@@ -20,9 +12,9 @@ layout: default
|
||||
{{ title }}
|
||||
</h1>
|
||||
<div class="content">
|
||||
{{ _content }}
|
||||
{{ content }}
|
||||
</div>
|
||||
{% else %}
|
||||
{{ _content }}
|
||||
{{ content }}
|
||||
{% endif %}
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user