Skip to content

Commit 73af591

Browse files
committed
fix(ui): min-height of page layout exceeds the mobile screen
1 parent f6bf6d0 commit 73af591

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

_includes/post-paginator.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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 %}

_layouts/category.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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 }}

_layouts/home.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,16 @@
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 %}

_layouts/page.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
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 %}

_layouts/tag.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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 }}

0 commit comments

Comments
 (0)