File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ permalink: "/blog/:year/:title:output_ext"
32
32
date_format : " %B %-d, %Y"
33
33
paginate : 12
34
34
paginate_path : " /blog/page:num/"
35
+ post-id : " #posts"
35
36
36
37
# Build settings
37
38
plugins :
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ <h3 class="section-heading mb-0 text-plum">Featured Series</h3>
69
69
70
70
<!-- All posts button (if not on a blog page already) -->
71
71
{% unless page.url contains "blog" %}
72
- < a href ="{% link blog/index.html %}#all-posts " class ="mt-4 btn btn-primary btn-icon-right ">
72
+ < a href ="{% link blog/index.html %}{{ site.post-id }} " class ="mt-4 btn btn-primary btn-icon-right ">
73
73
All Posts
74
74
< svg class ="svg-icon "> < use xlink:href ="{{ '/assets/images/icons/icon-sprite.svg#arrow-right' | relative_url }} "> </ use > </ svg >
75
75
</ a >
Original file line number Diff line number Diff line change 5
5
<!-- Previous arrow -->
6
6
{% if paginator.previous_page %}
7
7
< li class ="pagination__item ">
8
- < a class ="older-posts " href ="{{ paginator.previous_page_path | relative_url }} ">
8
+ < a class ="pagination__link " href ="{{ paginator.previous_page_path | relative_url }}{{ site.post-id }} ">
9
9
< span class ="visually-hidden "> Previous Page</ span >
10
10
< svg class ="svg-icon "> < use xlink:href ="{{ '/assets/images/icons/icon-sprite.svg#arrow-left' | relative_url }} "> </ use > </ svg >
11
11
</ a >
24
24
25
25
<!-- Page 1 -->
26
26
{% if page == 1 %}
27
- < a class ="pagination__link {{ class }} " href ="{{ paginator.previous_page_path | relative_url }} " {{ aria }} >
27
+ < a class ="pagination__link {{ class }} " href ="{{ paginator.previous_page_path | relative_url }}{{ site.post-id }} " {{ aria }} >
28
28
< span class ="visually-hidden "> Page </ span > {{ page }}
29
29
</ a >
30
30
31
31
<!-- Page 2, 3, 4, etc -->
32
32
{% else %}
33
- < a class ="pagination__link {{ class }} " href ="{{ site.paginate_path | relative_url | replace: ':num', page }} " {{ aria }} >
33
+ < a class ="pagination__link {{ class }} " href ="{{ site.paginate_path | relative_url | replace: ':num', page }}{{ site.post-id }} " {{ aria }} >
34
34
< span class ="visually-hidden "> Page </ span > {{ page }}
35
35
</ a >
36
36
41
41
<!-- Next arrow -->
42
42
{% if paginator.next_page %}
43
43
< li class ="pagination__item ">
44
- < a class ="older-posts " href ="{{ paginator.next_page_path | relative_url }} ">
44
+ < a class ="pagination__link " href ="{{ paginator.next_page_path | relative_url }}{{ site.post-id }} ">
45
45
< span class ="visually-hidden "> Next Page</ span >
46
46
< svg class ="svg-icon "> < use xlink:href ="{{ '/assets/images/icons/icon-sprite.svg#arrow-right' | relative_url }} "> </ use > </ svg >
47
47
</ a >
Original file line number Diff line number Diff line change 10
10
margin : rem-calc (0 5px 5px 0 );
11
11
}
12
12
13
- .pagination a {
13
+ .pagination__link {
14
14
display : inline-block ;
15
15
padding : rem-calc (4px );
16
16
min-width : rem-calc (36px );
You can’t perform that action at this time.
0 commit comments