Skip to content

Commit

Permalink
regenerated for image urls and making sure image download happens
Browse files Browse the repository at this point in the history
  • Loading branch information
raffazizzi committed Nov 15, 2023
1 parent 957d0cc commit 297fc04
Show file tree
Hide file tree
Showing 5 changed files with 5,255 additions and 5,252 deletions.
3 changes: 3 additions & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ async function makePosts(createPage, graphql, pathPrefix) {
}

async function makePostIndex(createPage, graphql, pathPrefix) {
console.log(`making post index`)
const results = await graphql(`
query {
allMarkdownRemark(
Expand All @@ -212,6 +213,8 @@ async function makePostIndex(createPage, graphql, pathPrefix) {
const postsPerPage = 25
const numPages = Math.ceil(numPosts / postsPerPage)

console.log(`NUMPAGES:`, numPages)

Array.from({ length: numPages }).forEach((_, i) => {
createPage({
path: i === 0 ? `/news` : `/news/${i + 1}`,
Expand Down
Loading

0 comments on commit 297fc04

Please sign in to comment.