Pages
Evidence renders markdown files into web pages. When developing, the markdown file /pages/example.md is rendered at localhost:3000/example.
Evidence instantly reloads pages when their markdown files are edited and saved.
File Based Routing
The URL to access a page is determined by the path to the markdown file in the /pages directory:
pages/index.mdis the homepagepages/weekly-sales.mdcreates the/weekly-salespagepages/marketing/attribution.mdcreates the/marketing/attributionpage
This allows you to organize your pages in a way that makes sense for your users, for example:
- by department
- by product
- by customer
- by time period
Templated Pages
pages/customers/[customer].mdcreates a page for each customer using the[customer].mdtemplate. See templated pages for details.
Frontmatter
You can include page metadata, such as a title, using frontmatter.
