(chore) lint
This commit is contained in:
parent
89160b9376
commit
081a3a1769
2 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ export const getStaticPaths = async () => {
|
|||
const numPosts = await sanityLoader({ query: `count(*[_type == "blogen"])` })
|
||||
const numPages = Math.ceil(numPosts / numPerPage)
|
||||
const paths = []
|
||||
for (let i = 0; i < numPerPage; i++) {
|
||||
for (let i = 0; i < numPages; i++) {
|
||||
const pathName = `/blog/page/${i + 1}`
|
||||
locales.forEach((l) => paths.push(`${l.length ? '/' : ''}${l}${pathName}`))
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ export const getStaticPaths = async () => {
|
|||
const numPosts = await sanityLoader({ query: `count(*[_type == "showcaseen"])` })
|
||||
const numPages = Math.ceil(numPosts / numPerPage)
|
||||
const paths = []
|
||||
for (let i = 0; i < numPerPage; i++) {
|
||||
for (let i = 0; i < numPages; i++) {
|
||||
const pathName = `/showcase/page/${i + 1}`
|
||||
locales.forEach((l) => paths.push(`${l.length ? '/' : ''}${l}${pathName}`))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue