DEV Community

Discussion on: I created World's smallest static site genertor in 2 hours.

Collapse
 
gklijs profile image
Gerard Klijs

To me 90 lines seems a bit much for a minimal set. Recently did something similar, but just for one specific site, so a bit hard to seperate the code generate code from the template code. github.com/gklijs/clojuredays.org/... is the basis and just 30 lines, could be made shorter even.

Collapse
 
sharadcodes profile image
Sharad Raj (He/Him) • Edited

Well I appreciate your efforts but I will also say that my_py_site is capable of doing more then rendering templates, it is able to generate multiple blogs without configuration and it also parses and separates the YML front matter and the Markdown content converted to HTML. You can access that YML front matter anywhere in the templates and moreover the Meta data of pages and posts is also accessible in the templates.

You can use different layouts for any post or page as well. Just specify layout in YML front matter.

Collapse
 
devanghingu profile image
Devang Hingu

Yeah.. you're right.