Example of passing information to getStaticProps via dynamic routes
Routes processed by pages/posts/[id].js
. The markdown files in folder pages/posts
are read and displayed:
- 2024-12-08-leccion
- 2024-12-09-leccion
- Does not exists: 2024-12-10-leccion
Example of passing information to getStaticProps via context
See file context. It will show the file names and an excerpt of the contents of the files in folder pages/posts
.