all repos — min @ bfd3bbf749619672b6e0eac969e604c8b4a42209

A small but practical concatenative programming language.

Minor fixes.
h3rald h3rald@h3rald.com
Wed, 20 May 2026 14:59:10 +0200
commit

bfd3bbf749619672b6e0eac969e604c8b4a42209

parent

94ee679401633d8607cd5c684493abfecc4986ec

3 files changed, 12 insertions(+), 10 deletions(-)

jump to
M minpkg/core/shell.nimminpkg/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.minsite/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
M site/templates/_footer.mustachesite/templates/_footer.mustache

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

<footer> -<p>&copy; 2017&mdash;2024 &bull; <a href="https://h3rald.com">Fabio Cevasco</a></p> +<p>&copy; 2017&mdash;2026 &bull; <a href="https://h3rald.com">Fabio Cevasco</a></p> <p> <a href="http://creativecommons.org/licenses/by-sa/4.0/"> <img src="https://img.shields.io/badge/content-CC%20BY--SA%204.0 License-yellow.svg"