Closed NicolasStr closed 5 years ago
We should take example of reactjs.org gatsby website's dynamic Page creation.
For v1.0.0, we will add 3 different templates: Single Template / Community Page Template / Tutorial Page Template
We will create a slug (URL of page) dynamically based on the relativepath in content/ replacing .md with .html in onCreateNode API
onCreateNode
We will then create a page with createPage() base on Slug to use a template in createPages API.
createPage()
createPages
Merged. See https://github.com/TypeCobolTeam/typecobolteam.github.io/commit/4f00a54f5ef58d980ef6c9b9c1ba261cc4ef0d92
We should take example of reactjs.org gatsby website's dynamic Page creation.
For v1.0.0, we will add 3 different templates: Single Template / Community Page Template / Tutorial Page Template
We will create a slug (URL of page) dynamically based on the relativepath in content/ replacing .md with .html in
onCreateNode
APIWe will then create a page with
createPage()
base on Slug to use a template increatePages
API.