Skip to content

Commit

Permalink
[fix] 배포 이슈 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
suu3 committed Dec 18, 2023
1 parent b934b8c commit e4f5ada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/@layout/post-list-template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const PostListTemplate = ({ data, location, pageContext }) => {
const posts = data.allMarkdownRemark.nodes
const tags = data.allTagsInfo

const pathname = location.pathname.split("/page/")[0].replace("/blog", "")
const handlePageChange = (page: number) => {
const pathname = location.pathname.split("/page/")[0]
navigate(withPrefix(`${pathname}/page/${page}/`))
navigate(`${pathname}/page/${page}/`)
}

const textItemRender = (current, type, element) => {
Expand Down

0 comments on commit e4f5ada

Please sign in to comment.