SPFA
A blog generator.
Usage
- spfa g (generate) generate files
- spfa s (server) build server on localhost:3000
- spfa i (init) initialize spfa
- spfa c (clean) clean /public
libs
- file: for file operations
- check: check the SPFA.tag exist
- md2html: convert .md files to .html
- mkindex: make index.html
the directories
/lib : for css and js
/post : for your post markdowns
/public : the html and style you will publish
/public/lib : a copy of /lib
/public/post : your posts in html form
How to use
- Go to the terminal
- Enter npm install spfa@latest -g (use sudo if necessary?)
- Go to post (not the post inside the public folder)
- put Markdown file inside
- Enter spfa i, spfa g, spfa s
- Open your browser and go to https://localhost:3000
- Go to the public folder and your file is the html one
- You're done! (convenient, isn't it)
This page is made using SPFA
Github: https://github.com/oi-14/spfa