21 lines
824 B
Plaintext
21 lines
824 B
Plaintext
|
A simple static blog generator in Lua, without external dependencies.
|
||
|
Tested on Lua 5.1+
|
||
|
|
||
|
NOTE: Things are not being escaped yet, expect broken stuff, take care.
|
||
|
|
||
|
Put the data in htroot into your destination folder. Then run ./generate <destination>.
|
||
|
|
||
|
Edit data/setting/sub_path.txt to point to the right sub-directory on your web server, otherwise the links will be broken.
|
||
|
|
||
|
How to make a post:
|
||
|
* Create this file: data/post/YYYYMMDD-HHMM_My post/content.html
|
||
|
* Add the post to the entry list (data/post/entries.txt), like so:
|
||
|
YYYYMMDD-HHMM_My post
|
||
|
(Sorting does not matter)
|
||
|
|
||
|
How to change the layout/style:
|
||
|
* Edit data/setting/page.html for the page layout and style
|
||
|
* Edit data/setting/post.html for the post layout (don't put style here)
|
||
|
* You can put $$VARIABLES$$ inside these html files, to reference certain things
|
||
|
|