diff options
| author | Ben Beltran <ben@nsovocal.com> | 2017-07-03 00:55:32 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2017-07-03 00:55:32 -0500 |
| commit | 5e265f9d81bcce30949e88850892ea5dacec7386 (patch) | |
| tree | 056dfe345174027335cc033359dfbe14a8d53250 /README.md | |
| parent | 4ae55e0673a61c50f1f7f378f6461d0388f66bd5 (diff) | |
| parent | be33bb82f6276b05a3861df8a7c5138ac320a00b (diff) | |
Merge branch 'release/1.0.0'
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 48 |
1 files changed, 47 insertions, 1 deletions
@@ -1,2 +1,48 @@ # blog -A temporary blog + +Blog at unlimited.pizza -> Only + +## How to install + +`npm install -g .` will expose the `blog` binary to your CLI. + +## How to add a new entry + +Create a directory with a `.md` markdown file, and an `/assets` +directory with anything you want in there. This can be in any directory. + +``` +. +└── this-is-an-example-post + ├── assets + │ └── example.png + └── this-is-an-example-post.md +``` + +You can add this to the blog using the following command, it will shift +all entries and remove the oldest one if limit of posts is reached +(defualts to 3): + +`blog --add path/to/blog_post` + +These commands will regenerate the static files. At that point you can +preview your blog by serving the files on the `static` directory. + +If you need to make corrections use: + +`blog --update path/to/blog_post` + +This will replace the latest with the contents of the `path` without +shifting the existing entries. + +`blog --publish` + +Will publish the blog. + +## How to publish + +At the moment, the app does not include any publishers. [surge][surge] is an easy +way to do it, just point it to your static directory. + + +[surge]: https://surge.sh |