mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-12-18 13:44:15 +00:00
refactor(layout): improve margin bottom of the core block (#1116)
Improvement of commit 73af591
This commit is contained in:
@@ -5,7 +5,7 @@ layout: page
|
||||
|
||||
{% include lang.html %}
|
||||
|
||||
<div id="page-category" class="mb-5">
|
||||
<div id="page-category">
|
||||
<h1 class="ps-lg-2">
|
||||
<i class="far fa-folder-open fa-fw text-muted"></i>
|
||||
{{ page.title }}
|
||||
|
||||
@@ -40,16 +40,7 @@ refactor: true
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if paginator.total_pages > 1 %}
|
||||
{% assign has_paginator = true %}
|
||||
{% endif %}
|
||||
|
||||
<div
|
||||
id="post-list"
|
||||
{% unless has_paginator %}
|
||||
class="mb-5"
|
||||
{% endunless %}
|
||||
>
|
||||
<div id="post-list">
|
||||
{% for post in posts %}
|
||||
<a href="{{ post.url | relative_url }}" class="card-wrapper">
|
||||
<div class="card post-preview flex-md-row-reverse">
|
||||
@@ -114,6 +105,6 @@ refactor: true
|
||||
</div>
|
||||
<!-- #post-list -->
|
||||
|
||||
{% if has_paginator %}
|
||||
{% if paginator.total_pages > 1 %}
|
||||
{% include post-paginator.html %}
|
||||
{% endif %}
|
||||
|
||||
@@ -5,7 +5,11 @@ layout: default
|
||||
{% 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 %}
|
||||
@@ -52,7 +56,7 @@ layout: default
|
||||
</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 %}
|
||||
|
||||
@@ -5,7 +5,7 @@ layout: page
|
||||
|
||||
{% include lang.html %}
|
||||
|
||||
<div id="page-tag" class="mb-5">
|
||||
<div id="page-tag">
|
||||
<h1 class="ps-lg-2">
|
||||
<i class="fa fa-tag fa-fw text-muted"></i>
|
||||
{{ page.title }}
|
||||
|
||||
@@ -3,7 +3,7 @@ layout: page
|
||||
# All the Tags of posts.
|
||||
---
|
||||
|
||||
<div id="tags" class="d-flex flex-wrap mx-xl-2 mb-5">
|
||||
<div id="tags" class="d-flex flex-wrap mx-xl-2">
|
||||
{% assign tags = '' | split: '' %}
|
||||
{% for t in site.tags %}
|
||||
{% assign tags = tags | push: t[0] %}
|
||||
|
||||
Reference in New Issue
Block a user