You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
knotteye 614809f34e Squish bug 8 months ago
src Squish bug 8 months ago
testsite Squish bug 8 months ago
.gitignore Replace a string in the template so that we can add a footer 8 months ago
LICENSE Rewrite in crystal 10 months ago
Makefile Replace a string in the template so that we can add a footer 8 months ago
README.md Squish bug 8 months ago
blogtool.nginx Initial commit with README, structure, dependencies and nginx blocks. 10 months ago
shard.yml Rewrite in crystal 10 months ago

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.