all repos — hastysite @ e090886ea65f485177cc50643d18a427c41fa185

A high-performance static site generator.

Preparing to release v1.2.2.
h3rald h3rald@h3rald.com
Sat, 24 Nov 2018 12:57:36 +0100
commit

e090886ea65f485177cc50643d18a427c41fa185

parent

626012b7a84ff276e612b792c170685251e40571

M hastysite.nimhastysite.nim

@@ -10,14 +10,14 @@ parsecfg,

logging, pegs -{.passL: "-Lpackages/hastyscribe/vendor".} +{.passL: "-Lpackages/hastyscribe/src/hastyscribepkg/vendor".} import - packages/min/min, - packages/min/packages/sha1/sha1, - packages/min/packages/niftylogger, - packages/hastyscribe/hastyscribe, - packages/moustachu/src/moustachu + packages/min/min, + packages/min/packages/sha1/sha1, + packages/min/packages/niftylogger, + packages/hastyscribe/src/hastyscribe, + packages/moustachu/src/moustachu import config

@@ -109,7 +109,7 @@ result = ""

var delimiter = 0 try: while f.readLine(s): - if delimiter >= 2: + if delimiter >= 2: result &= s&"\n" else: if s.startsWith("----"):

@@ -397,7 +397,7 @@ def.symbol("markdown") do (i: In):

var vals = i.expect(["dict", "string"]) let c = vals[0] let t = vals[1] - let options = HastyOptions(toc: false, output: nil, css: nil, watermark: nil, fragment: true) + let options = HastyOptions(toc: false, output: "", css: "", watermark: "", fragment: true) var fields = initTable[string, proc():string]() for key, v in c.dVal: fields[key] = proc(): string =

@@ -408,6 +408,7 @@ i.push hastyscribe.compileFragment(file, hs.dirs.contents).newVal

def.finalize("hastysite") + when isMainModule: import
M hastysite.nimblehastysite.nimble

@@ -1,6 +1,6 @@

[Package] name = "hastysite" -version = "1.2.1" +version = "1.2.2" author = "Fabio Cevasco" description = "A small but powerful static site generator" license = "MIT"
M site/contents/getting-started.mdsite/contents/getting-started.md

@@ -4,7 +4,7 @@ title: "Getting Started"

content-type: page ----- -{{version => 1.2.1}} +{{version => 1.2.2}} ## Download
A site/contents/posts/v122-released.md

@@ -0,0 +1,10 @@

+----- +id: v122-released +title: "Version 1.2.2 released" +content-type: post +date: "24 November 2018" +timestamp: 1543060501 +----- + +* Upgraded to min v0.19.2 +* Upgraded to HastyScribe v1.11.0