all repos — hastysite @ 3a83cc4accd34c12b70fd667b70baef076995d14

A high-performance static site generator.

Fixed incorrect content processing.
h3rald h3rald@h3rald.com
Sun, 20 Nov 2016 19:52:56 +0100
commit

3a83cc4accd34c12b70fd667b70baef076995d14

parent

fb936020e542dfe22793d741098c0699a84a360b

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

jump to
M hastysite.nimhastysite.nim

@@ -161,12 +161,12 @@ result = ""

var delimiter = 0 while f.readLine(s): if delimiter >= 2: - result &= s + result &= s&"\n" else: if s.match(peg"'-' '-' '-' '-'*"): delimiter.inc else: - yaml &= "\n" & s + yaml &= s&"\n" if yaml == "": raise NoMetadataException(msg: "No metadata found in file: " & file) if not obj.hasKey("contents"):