commit ab4f978d8cd225311e88495bc8eb28fcef3fe1a7
parent ce3e08389fef74732cfb4e5c22a7a23622bda2d0
Author: lou woell <lou@repetitions.de>
Date:   Tue,  1 Sep 2026 18:27:49 +0200

small cleanup

Diffstat:
Mhtml/node.chtml | 11+++++++----
Mmakefile | 8+++++---
2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/html/node.chtml b/html/node.chtml @@ -2,10 +2,11 @@ node="node" level="level" types="types" + id="(gethash &quot;id&quot; node)" type="(gethash &quot;type&quot; node)" refs="(gethash &quot;ref&quot; node)" backlinks="(gethash :links node)" - id="(gethash &quot;id&quot; node)"> + children="(gethash :child-nodes node)"> <div class="node" lquery="(attr :id id) (add-class type)"> <c:expand class="headline" lquery="(attr :as (format nil &quot;h~a&quot; level))"> @@ -41,8 +42,10 @@ </c:splice> </div> </c:when> - <div class="node-children" iterate="(gethash :child-nodes node)"> - <c:h>(make-node * (** :vkey) (** :types) (+ (** :level) 1) )</c:h> - </div> + <when test="children"> + <div class="node-children" iterate="children"> + <c:h>(make-node * (** :vkey) (** :types) (+ (** :level) 1))</c:h> + </div> + </when> </div> </c:let> diff --git a/makefile b/makefile @@ -1,11 +1,13 @@ -BUILD_DIR=./build/ +BUILD_DIR=./build SRC_DIRS=./data ./lisp ./html ./assets FILES=makefile readme.md +ARCHIVE=$(BUILD_DIR)/ethica.zip + .PHONY: deploy -deploy: $(BUILD_DIR)ethica.zip +deploy: $(ARCHIVE) rsync -rL $(BUILD_DIR) repetitions:~/ethica -$(BUILD_DIR)ethica.zip: $(SRC_DIRS) $(FILES) +$(ARCHIVE): $(SRC_DIRS) $(FILES) zip -r $@ $^