h3rald / hastysite

A small but powerful static site generator
https://hastysite.h3rald.com
MIT License
72 stars 2 forks source link

Init fails to create scripts correctly #3

Closed burningrooftop closed 3 years ago

burningrooftop commented 3 years ago

After running hastysite init the scripts directory contains only 3 files: build.min, clean.min and page.min. Furthermore, clean.min contains the contents of post.min and the actual clean.min is missing.

The problem is in line 283 of hastysite.nim:

writeFile(dir/"scripts/clean.min", SCRIPT_POST)

h3rald commented 3 years ago

Well spotted, stupid mistake... fixing now, thanks!