1 | # An Inkpad.io-based Blog Generator
|
2 |
|
3 | [Ideas and future plans](https://www.inkpad.io/dpOnvOCG0r)
|
4 |
|
5 |
|
6 | ## Install
|
7 |
|
8 | npm install -g inkpad-blog
|
9 |
|
10 |
|
11 | ## Generate [a sample blog](https://www.inkpad.io/2dFtYP8H76):
|
12 |
|
13 | inkpad-blog --id 2dFtYP8H76
|
14 |
|
15 | The generated static files output is now in `_build` and can be copied over to your nginx or push to Github Pages or just something that can serve static html files.
|
16 |
|
17 |
|
18 | ## Render 5 blog posts per page (default 3)
|
19 |
|
20 | inkpad-blog --id 2dFtYP8H76 --per-page 5
|
21 |
|
22 |
|
23 | ## Custom Themes
|
24 |
|
25 | mkdir ~/my-inkpad-blog-theme
|
26 | cp templates/* ~/my-inkpad-blog-theme/
|
27 | inkpad-blog --id 2dFtYP8H76 --templates-path ~/my-inkpad-blog-theme/
|
28 |
|
29 | `Note` All files placed in a folder called `public` within the template-path will be copied over, preserving their path and name. This helps with JS, CSS,
|
30 | images, CNAME, and other asset files that are required by your theme.
|
31 |
|