Skip to content

Commit e1cf41b

Browse files
committed
Fix pagination navigation consistency and sidebar visibility issues
1 parent 2d5f202 commit e1cf41b

File tree

3 files changed

+31
-7
lines changed

3 files changed

+31
-7
lines changed

_layouts/post.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ <h4>分享这篇文章</h4>
5757
{% if page.previous.url %}
5858
<li class="previous">
5959
<a href="{{ page.previous.url | prepend: site.baseurl | replace: '//', '/' }}" data-toggle="tooltip" data-placement="top" title="{{page.previous.title}}">
60-
Previous<br>
60+
&larr; NEWER POSTS<br>
6161
<span>{{page.previous.title}}</span>
6262
</a>
6363
</li>
6464
{% endif %}
6565
{% if page.next.url %}
6666
<li class="next">
6767
<a href="{{ page.next.url | prepend: site.baseurl | replace: '//', '/' }}" data-toggle="tooltip" data-placement="top" title="{{page.next.title}}">
68-
Next<br>
68+
OLDER POSTS &rarr;<br>
6969
<span>{{page.next.title}}</span>
7070
</a>
7171
</li>

css/jason-blog.css

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -811,10 +811,12 @@ body {
811811
.sidebar-container {
812812
color: #1e40af;
813813
font-size: 14px;
814-
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
814+
background: rgba(248, 250, 252, 0.95);
815815
border-radius: 12px;
816816
padding: 20px;
817817
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
818+
backdrop-filter: blur(10px);
819+
border: 1px solid rgba(226, 232, 240, 0.8);
818820
}
819821
.sidebar-container h5 {
820822
color: #1e40af;
@@ -1587,11 +1589,13 @@ pre.highlight {
15871589
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
15881590
}
15891591
.sidebar-container.tech-enhanced {
1590-
background: linear-gradient(180deg, #f3f4f6 0%, #ffffff 100%);
1592+
background: rgba(243, 244, 246, 0.95);
15911593
border-radius: 12px;
15921594
padding: 20px;
15931595
margin-top: 20px;
1594-
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
1596+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
1597+
backdrop-filter: blur(10px);
1598+
border: 1px solid rgba(226, 232, 240, 0.8);
15951599
}
15961600
.sidebar-container.tech-enhanced h5 {
15971601
color: #5b21b6;
@@ -2029,11 +2033,31 @@ blockquote {
20292033
}
20302034
.post-container .pager li > a {
20312035
width: 100%;
2036+
display: inline-flex;
2037+
align-items: center;
2038+
justify-content: center;
2039+
padding: 12px 24px;
2040+
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
2041+
color: #4a5568 !important;
2042+
text-decoration: none;
2043+
border-radius: 12px;
2044+
font-weight: 600;
2045+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
2046+
transition: all 0.3s ease;
2047+
border: 1px solid rgba(226, 232, 240, 0.8);
2048+
}
2049+
.post-container .pager li > a:hover {
2050+
background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
2051+
color: #ffffff !important;
2052+
transform: translateY(-2px);
2053+
box-shadow: 0 8px 25px rgba(91, 33, 182, 0.3);
20322054
}
20332055
.post-container .pager li > a > span {
20342056
color: #6b7280;
20352057
font-weight: normal;
20362058
letter-spacing: 0.5px;
2059+
display: block;
2060+
margin-top: 5px;
20372061
}
20382062
.post-container .anchorjs-link {
20392063
position: absolute;

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ <h3 class="post-subtitle">
3434
<ul class="pager">
3535
{% if paginator.previous_page %}
3636
<li class="previous">
37-
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; Newer Posts</a>
37+
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&larr; NEWER POSTS</a>
3838
</li>
3939
{% endif %}
4040
{% if paginator.next_page %}
4141
<li class="next">
42-
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Older Posts &rarr;</a>
42+
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">OLDER POSTS &rarr;</a>
4343
</li>
4444
{% endif %}
4545
</ul>

0 commit comments

Comments
 (0)