Skip to content

Commit

Permalink
fix: 첫페이지 안넘어가지는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
Imggaggu committed Feb 22, 2025
1 parent 4929822 commit 2ea342a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ timezone: Asia/Seoul # https://en.wikipedia.org/wiki/List_of_tz_database_time_zo

# Pagination with jekyll-paginate
paginate: 6 # amount of posts to show
paginate_path: /blog/page:num/
paginate_path: /page:num/

# Pagination with jekyll-paginate-v2
# See https://github.com/sverrirs/jekyll-paginate-v2/blob/master/README-GENERATOR.md#site-configuration
Expand Down
2 changes: 1 addition & 1 deletion _includes/paginator-v1.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if paginator.total_pages > 1 %}
<nav class="pagination">
{% assign paginate_path_last = site.paginate_path | split: '/' | last %}
{% assign first_page_path = paginator.first_page_path | default: site.paginate_path | replace: paginate_path_last, '' | replace: '//', '/' | relative_url %}
{% assign first_page_path = site.baseurl | default: site.paginate_path | replace: paginate_path_last, '' | replace: '//', '/' | relative_url %}
<ul>
{% comment %} Link for previous page {% endcomment %}
{% if paginator.previous_page %}
Expand Down

0 comments on commit 2ea342a

Please sign in to comment.