1
0
Fork 0

(chore) lint

This commit is contained in:
Enoch Riese 2023-06-22 16:48:46 -05:00
parent 89160b9376
commit 081a3a1769
2 changed files with 2 additions and 2 deletions

View file

@ -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}`))
}

View file

@ -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}`))
}