From 2efdb8fd1d4e759cdb92dfb480fb706af68b8ade Mon Sep 17 00:00:00 2001 From: gnat Date: Mon, 21 Oct 2024 04:54:26 -0700 Subject: [PATCH] fix issue arrising from post titles containing ":" --- src/html/view-thought.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html/view-thought.lisp b/src/html/view-thought.lisp index e6227fb..6314d09 100644 --- a/src/html/view-thought.lisp +++ b/src/html/view-thought.lisp @@ -1,7 +1,7 @@ (defun html () (page "$[test \"$(echo '{' 'thought' '}' | sed 's/ //g')\" != '{thought}' && echo '{thought}' || echo thoughts index]" `(section () - (h1 (:style "display: $[test \"$(echo '{' 'thought' '}' | sed 's/ //g')\" != '{thought}' && echo block || echo none]") "$[cat ./html/thoughts/$(basename '{thought}') | grep '//']") + (h1 (:style "display: $[test \"$(echo '{' 'thought' '}' | sed 's/ //g')\" != '{thought}' && echo block || echo none]") "$[cat ./html/thoughts/$(basename '{thought}') | grep '//']") "$[cat ./html/thoughts/$(basename '{thought}') | grep '//']" (br) (div () "$[include ./html/thoughts/$(basename '{thought}')]") "$[test \"$(echo '{' 'thought' '}' | sed 's/ //g')\" != '{thought}' || (echo '

thoughts:

'; ls ./html/thoughts | while read -r file; do echo \"

$(cat ./html/thoughts/$file | grep '//') $file

\"; done | sort --numeric --reverse)]")))