commit 2e62160b0e1740dca9e3fb07f5fa57e3981e4986 parent 5b28d0fb3c98ea66bf57691e8440f5a1d43f2d7c Author: lou woell <lou@repetitions.de> Date: Fri, 23 Oct 2026 15:57:09 +0200 get rid of unnecessary format calls in html template Diffstat:
| M | html/ethics.chtml | | | 4 | +++- |
| M | html/node.chtml | | | 8 | +++----- |
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/html/ethics.chtml b/html/ethics.chtml @@ -1,7 +1,9 @@ <!DOCTYPE HTML> <html lquery="(attr :lang language)"> <head> - <title><c:s>(format nil "~A: ~A" (gethash "ethica" types) name)</c:s></title> + <title> + <c:s>(gethash "ethica" types)</c:s>: <c:s>name</c:s> + </title> <meta charset="utf-8"> <link rel="stylesheet" href="assets/style.css"> </head> diff --git a/html/node.chtml b/html/node.chtml @@ -1,8 +1,6 @@ -<div class = "node" lquery = "(attr :id id) (add-class type)"> - <c:expand class="headline" lquery="(attr :as (format nil "h~a" level))"> - <c:s> - (format nil "~a ~a" (gethash type types) (or (gethash "number" node) "")) - </c:s> +<div class="node" lquery="(attr :id id) (add-class type)"> + <c:expand class="headline" fill="as *" as="h{level}"> + <c:s>(gethash type types)</c:s> <c:s>(gethash "number" node "")</c:s> <a class="anchor" href="#{id}" fill="href *">#<c:s>id</c:s></a> </c:expand> <c:when test="backlinks">