all repos — hastysite @ 29ef2b8b37c537f407933b371f1a21bdb20e5e9b

A high-performance static site generator.

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

29ef2b8b37c537f407933b371f1a21bdb20e5e9b

parent

40ea8c4fe283acac3f9549c6184b398caad37b4f

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)