#how to create a blog using the next js template?

4 messages · Page 1 of 1 (latest)

loud brook
#

i have this in my navigation : <Link href="/Blog">Blog</Link> and everytime I click on it, i get a 404 error.

where should i save this?

"const Blog = () => {
// Your blog page content goes here

return (
  <div>
    <h1>Welcome to the Blog</h1>
  
    
      <p>Read a Blog Post</p>
    
  </div>
)

}

export default Blog"

i saved it in src under blog/index.tsx but i'm still getting a 404 error

modern bluff
#

under /app or /pages

#

You should visit the nextjs documentation