3.2.0 • Published 6 years ago
cmx2 v3.2.0
pronounced camux
Prerequisites
Before using cmx you need
- A
srcfolder containg the files that you want to host - A
viewsfolder containing a pug template (calledpage.pug) - A
.cmx.jsfile. Here's an example that renders markdown using markedmodule.exports = { "build": [{ "match": [/\.html?$/i] }, { "match": [/\.md$/i, /\.markdown$/i], "transformers": [ // Any jstransformer module {"name": "markdown-it"} ] }] }
Usage
Run cmx in the site folder`
Useful hints
- Remember to put a template into the front matter
- You can use YAML front matter to pass data to the template (e.g. Meta tags, the page title)
--- title: Page title template: page --- content content content - Files that are not copiled are copied verbatim to the
distdirectory