Go to file
knotteye 614809f34e Squish bug 2021-03-06 14:46:15 -06:00
src Squish bug 2021-03-06 14:46:15 -06:00
testsite Squish bug 2021-03-06 14:46:15 -06:00
.gitignore Replace a string in the template so that we can add a footer 2021-03-06 14:13:05 -06:00
LICENSE Rewrite in crystal 2020-12-23 01:48:34 -06:00
Makefile Replace a string in the template so that we can add a footer 2021-03-06 14:13:05 -06:00
README.md Squish bug 2021-03-06 14:46:15 -06:00
blogtool.nginx Initial commit with README, structure, dependencies and nginx blocks. 2020-12-22 09:15:14 -06:00
shard.yml Rewrite in crystal 2020-12-23 01:48:34 -06:00

README.md

BLOGTOOL is a non-bloated static site generator.

There are no themes. You write a project structure like this:

myblog
|
|-> articles
|   |-> article1.md
|   |-> article2.md
|-> assets
|   |-> article1.jpg
|   |-> photo.png
|-> about.md
|-> styles.css

with utf-8 encoded articles. Blogtool generates a static site in dist/ with a list of articles for the home page, an about page from about.md, each page will include styless.css and all assets will be available at /static. Dashes (-) will be replaced with spaces in the index.

dist
|
|-> index.html
|-> static
|   |-> article1.jpg
|   |-> photo.png
|   |-> styles.css
|-> article1.html
|-> article2.html
|-> about.html

You can build blogtool by running make && sudo make install. Invoke blogtool by running blogtool in the project directory. There are no options. You can copy /etc/blogtool/base.html to the project root and make changes to overwrite the template, as long as the string "## CONTENT" is in the template somewhere, as that will be replaced with the article or about page.