1.3.3 • Published 4 years ago
noddity-generator-cli v1.3.3
A static site generator for Noddity posts.
Install
You can either
npm i noddity-generator-cli -gor install locally and use npx.
API
generate-noddity --root=./my-posts --output=./public *.md *.mmdArguments:
root: the directory to scrape for posts. Defaults to the current working directoryoutputrequired: the directory where thehtmlfiles should be createdtemplate: required: the template html file content should be injected into. The file should contain{{{html}}}data: path to a js/json file to be 'require'd as the data objectfilter: path to a js file exposing a filter function that determines if a post should be included in the indexfeed: path to a js/json file containingurlRoot,title,author,outputFileName,feedUrl- all other unlabeled arguments are patterns to match files against. Defaults to
*.md
This tool assumes that you have a file named post in the root directory, with that post file containing {{{html}}} in the place where the content should be injected.