all repos — hastysite @ b24c9923e1fce01aba0aa3ada8ce9749becb0a04

A high-performance static site generator.

Fixed checksums file generation.
h3rald h3rald@h3rald.com
Fri, 03 Nov 2017 10:03:34 +0100
commit

b24c9923e1fce01aba0aa3ada8ce9749becb0a04

parent

bb794ceb6e7063a8579b65c9e21b6129ee43c4a1

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M hastysite.nimhastysite.nim

@@ -199,6 +199,8 @@ let content = f.preprocessContent(hs.dirs.contents & DirSep, meta)

let dest = hs.dirs.temp/f dest.parentDir.createDir dest.writeFile(content) + if not hs.dirs.temp.dirExists: + hs.dirs.temp.createDir if not hs.files.checksums.fileExists: let checksums = newJObject() hs.files.checksums.writeFile(checksums.pretty)