Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sethetter/express-md
Basic setup for serving a static site with markdown files through express.
https://github.com/sethetter/express-md
Last synced: 12 days ago
JSON representation
Basic setup for serving a static site with markdown files through express.
- Host: GitHub
- URL: https://github.com/sethetter/express-md
- Owner: sethetter
- Created: 2015-12-27T00:59:25.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-27T01:14:20.000Z (almost 9 years ago)
- Last Synced: 2024-04-14T15:20:19.468Z (7 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# express-md
A basic template for an express server that will serve markdown files from a
`/pages` directory wrapped in an HTML layout.1. Clone the repo.
2. Modify `views/layout.ejs` to your desire.
3. Add markdown files to the `/pages` directory.
4. They will now be available as routes based on their filename
1. `pages/about.md` will be available at `/about`
5. For now, you'll need to add the pages to the navigation in `views/layout.ejs`