Minor fixes.
h3rald h3rald@h3rald.com
Wed, 20 May 2026 14:59:10 +0200
3 files changed,
12 insertions(+),
10 deletions(-)
M
minpkg/core/shell.nim
→
minpkg/core/shell.nim
@@ -191,6 +191,7 @@ var s = newStringStream("")
i.open(s, "<repl>") var line: string while true: + ERRORS_HANDLED = true # Avoid printing error hint on CTRL+C i.push(i.newSym("prompt")) let vals = i.expect("str") let v = vals[0]@@ -210,6 +211,7 @@ i.open(s, "<repl>")
var line: string echo "$# shell v$#" % [pkgName, pkgVersion] while true: + ERRORS_HANDLED = true # Avoid printing error hint on CTRL+C let iref = i EDITOR.completionCallback = proc(ed: LineEditor): seq[string] = var completions = ed.getCompletions(iref)
M
site/rules.min
→
site/rules.min
@@ -11,8 +11,8 @@ (
symbol set-destination (dict :meta ==> dict :result) ( - meta "id" dict.get :id - meta "ext" dict.get :ext + meta.id :id + meta.ext :ext ( ((id "home" ==) ( meta (@@ -56,8 +56,8 @@ "" :page
"" :contents meta ( (input-fread @contents meta) - (settings "title" dict.get "site" dict.set) - (settings "version" dict.get "version" dict.set) + (settings.title "site" dict.set) + (settings.version "version" dict.set) ( :temp contents temp markdown highlight-codeblocks highlight-codes @contents temp@@ -66,7 +66,7 @@ (contents "contents" dict.set)
( ; Save post content (plain HTML fragment, no template) :temp - (temp "content-type" dict.get "post" ==) + (temp.content-type "post" ==) ; Need to save html fragment separately because contents is overwritten. (temp stack.dup "contents" dict.get convert-html-entities "fragment" dict.set posts append @posts) when@@ -82,7 +82,7 @@ (
symbol process-md-content (dict :meta ==> dict :result) ( - meta "content-type" dict.get :ct + meta.content-type :ct meta ct process-md-with-template @result )@@ -92,8 +92,8 @@ (
symbol process-content (dict :meta ==> dict :result) ( - meta "ext" dict.get :ext - meta "id" dict.get :id + meta.ext :ext + meta.id :id meta ( ((".md" ext ==) (process-md-content))@@ -128,7 +128,7 @@ ; Update timestamp
contents ts "updated" dict.set @contents data contents to-json "contents" dict.set output-fwrite - ; Add timesyamp file + ; Add timestamp file { "mmm.timestamp" :path "mmm" :id