File tree Expand file tree Collapse file tree 5 files changed +16
-11
lines changed
Expand file tree Collapse file tree 5 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 11<!-- The paginator for post list on HomgPage. -->
22
3- < ul class ="pagination align-items-center mt-4 mb-1 ps-lg-2 ">
3+ < ul class ="pagination align-items-center mt-4 mb-5 ps-lg-2 ">
44 <!-- left arrow -->
55 {% if paginator.previous_page %}
66 {% assign prev_url = paginator.previous_page_path | relative_url %}
Original file line number Diff line number Diff line change 55
66{% include lang.html %}
77
8- < div id ="page-category ">
8+ < div id ="page-category " class =" mb-5 " >
99 < h1 class ="ps-lg-2 ">
1010 < i class ="far fa-folder-open fa-fw text-muted "> </ i >
1111 {{ page.title }}
Original file line number Diff line number Diff line change 4040 {% endfor %}
4141{% endif %}
4242
43- < div id ="post-list ">
43+ {% if paginator.total_pages > 1 %}
44+ {% assign has_paginator = true %}
45+ {% endif %}
46+
47+ < div
48+ id ="post-list "
49+ {% unless has_paginator %}
50+ class ="mb-5 "
51+ {% endunless %}
52+ >
4453 {% for post in posts %}
4554 < a href ="{{ post.url | relative_url }} " class ="card-wrapper ">
4655 < div class ="card post-preview flex-md-row-reverse ">
@@ -105,6 +114,6 @@ <h1 class="card-title my-2 mt-md-0">
105114</ div >
106115<!-- #post-list -->
107116
108- {% if paginator.total_pages > 1 %}
117+ {% if has_paginator %}
109118 {% include post-paginator.html %}
110119{% endif %}
Original file line number Diff line number Diff line change 55{% include lang.html %}
66{% include origin-type.html %}
77
8- {% if layout.tail_includes %}
9- {% assign has_tail = true %}
10- {% endif %}
11-
12- < div class ="row{% unless has_tail %} mb-5{% endunless %} ">
8+ < div class ="row ">
139 <!-- core -->
1410 < div id ="core-wrapper " class ="col-12 col-lg-11 col-xl-9 pe-xl-4 ">
1511 {% capture padding %}
@@ -56,7 +52,7 @@ <h1 class="dynamic-title">
5652</ div >
5753
5854<!-- tail -->
59- {% if has_tail %}
55+ {% if layout.tail_includes %}
6056 < div class ="row ">
6157 < div id ="tail-wrapper " class ="col-12 col-lg-11 col-xl-9 px-3 pe-xl-4 mt-5 ">
6258 {% for _include in layout.tail_includes %}
Original file line number Diff line number Diff line change 55
66{% include lang.html %}
77
8- < div id ="page-tag ">
8+ < div id ="page-tag " class =" mb-5 " >
99 < h1 class ="ps-lg-2 ">
1010 < i class ="fa fa-tag fa-fw text-muted "> </ i >
1111 {{ page.title }}
You can’t perform that action at this time.
0 commit comments