A simple static blog generator in Lua, without external dependencies
Go to file
Fierelier 52ba6af283 Make string replacements not use gsub 2024-06-11 09:36:56 +02:00
htroot/data Initial commit 2024-06-10 15:48:25 +02:00
LICENSE Initial commit 2024-06-10 15:48:25 +02:00
generate Make string replacements not use gsub 2024-06-11 09:36:56 +02:00
readme.txt Initial commit 2024-06-10 15:48:25 +02:00

readme.txt

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