all repos — hastysite @ e847aee1397f056af2f9c2b3a146666f6cd76789

A high-performance static site generator.

Fixed errors; preparing to release.
h3rald h3rald@h3rald.com
Mon, 30 Sep 2019 15:05:42 +0200
commit

e847aee1397f056af2f9c2b3a146666f6cd76789

parent

e0058d9dd4574963b099d285c5e8ca0383b03434

5 files changed, 34 insertions(+), 20 deletions(-)

jump to
M HastySite_UserGuide.mdHastySite_UserGuide.md

@@ -28,6 +28,22 @@ {@ site/contents/reference.md || 1 @}

## Changelog +### v1.3.2 + +{@ site/contents/posts/v132-released.md || 1 @} + +### v1.3.1 + +{@ site/contents/posts/v131-released.md || 1 @} + +### v1.3.0 + +{@ site/contents/posts/v130-released.md || 1 @} + +### v1.2.2 + +{@ site/contents/posts/v122-released.md || 1 @} + ### v1.2.1 {@ site/contents/posts/v121-released.md || 1 @}
M config.nimconfig.nim

@@ -1,5 +1,5 @@

const pkgName* = "HastySite" - pkgVersion* = "1.3.1" + pkgVersion* = "1.3.2" pkgDescription* = "A small but powerful static site generator" pkgAuthor* = "Fabio Cevasco"
M hastysite.nimhastysite.nim

@@ -427,8 +427,11 @@ let t = vals[1]

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 = - return $$v.val + closureScope: + let key_closure = key + let val_closure = $$v.val + fields[key_closure] = proc(): string = + return val_closure var hastyscribe = newHastyScribe(options, fields) let file = t.getString() i.push hastyscribe.compileFragment(file, hs.dirs.contents).newVal
M hastysite.nimblehastysite.nimble

@@ -8,14 +8,12 @@ license = "MIT"

bin = @["hastysite"] # Deps -requires: "nim >= 0.19.0" +requires: "nim >= 1.0.0" # Tasks const compile = "nim c -d:release -d:nimOldCaseObjects" - linux_x86 = "--cpu:i386 --os:linux" linux_x64 = "--cpu:amd64 --os:linux" - linux_arm = "--cpu:arm --os:linux" windows_x64 = "--cpu:amd64 --os:windows" macosx_x64 = "" #parallel = "--parallelBuild:1 --verbosity:3"

@@ -32,15 +30,9 @@

task windows_x64_build, "Build hastysite for Windows (x64)": shell compile, windows_x64, hs_file -task linux_x86_build, "Build hastysite for Linux (x86)": - shell compile, linux_x86, hs_file - task linux_x64_build, "Build hastysite for Linux (x64)": shell compile, linux_x64, hs_file -task linux_arm_build, "Build hastysite for Linux (ARM)": - shell compile, linux_arm, hs_file - task macosx_x64_build, "Build hastysite for Mac OS X (x64)": shell compile, macosx_x64, hs_file

@@ -52,14 +44,6 @@ shell "rm", hs & ".exe"

echo "\n\n\n LINUX - x64:\n\n" linux_x64_buildTask() shell zip, filename_for("linux", "x64"), hs - shell "rm", hs - echo "\n\n\n LINUX - x86:\n\n" - linux_x86_buildTask() - shell zip, filename_for("linux", "x86"), hs - shell "rm", hs - echo "\n\n\n LINUX - ARM:\n\n" - linux_arm_buildTask() - shell zip, filename_for("linux", "arm"), hs shell "rm", hs echo "\n\n\n MAC OS X - x64:\n\n" macosx_x64_buildTask()
A site/contents/posts/v132-released.md

@@ -0,0 +1,11 @@

+----- +id: v132-released +title: "Version 1.3.2 released" +content-type: post +date: "30 September 2019" +timestamp: 1569848401 +----- +* Fixed processing of metadata fields. +* Upgraded to min v0.19.5. +* Tested on Nim v1.0.0 +