(defun html () (page "$[test \"$(echo '{' 'thought' '}' | sed 's/ //g')\" != '{thought}' && echo '{thought}' || echo thoughts index]" `(section () "$[echo > /tmp/footnote_count]" (h1 (:style "display: $[test \"$(echo '{' 'thought' '}' | sed 's/ //g')\" != '{thought}' && echo block || echo none]") "$[cat ./html/thoughts/$(basename '{thought}') | grep '//']") (div (:style "height: 0; margin-top: 5px; justify-content: space-between; align-items: center; display: $[test \"$(echo '{' 'thought' '}' | sed 's/ //g')\" != '{thought}' && echo flex || echo none;]") (p () "$[cat ./html/thoughts/$(basename '{thought}') | grep '//']") (p () "categories: $[cat ./html/thoughts/$(basename '{thought}') | grep '//' | awk -F';' '{ for (i=1; i<=NF; i++) { sub(/^ +| +$/, \"\", $i); if ($i != \"\") printf \"%s, \", $i, $i } }' | sed 's/, $//']")) "$[test \"$(echo '{' 'thought' '}' | sed 's/ //g')\" != '{thought}' && echo '
' || true]" (div () "$[include \"./html/thoughts/$(basename '{thought}')\"]") "$[test \"$(echo '{' 'thought' '}' | sed 's/ //g')\" != '{thought}' || echo '

posts:

']" "$[test \"$(echo '{' 'filter-category' '}' | sed 's/ //g')\" != '{filter-category}' || test \"$(echo '{' 'thought' '}' | sed 's/ //g')\" != '{thought}' || (ls ./html/thoughts | while read -r file; do echo \"
$(cat ./html/thoughts/$file | grep '//') $(cat ./html/thoughts/$file | grep '//')
categories: $(cat ./html/thoughts/$file | grep '//' | awk -F';' '{ for (i=1; i<=NF; i++) { sub(/^ +| +$/, \"\", $i); if ($i != \"\") printf \"%s, \", $i, $i } }' | sed 's/, $//')
\"; done | sort --numeric --reverse)]" "$[test \"$(echo '{' 'filter-category' '}' | sed 's/ //g')\" != '{filter-category}' && test \"$(echo '{' 'thought' '}' | sed 's/ //g')\" != '{thought}' || (ls ./html/thoughts | while read -r file; do grep '//') $(cat ./html/thoughts/$file | grep '//')
categories: $(cat ./html/thoughts/$file | grep '//' | awk -F';' '{ for (i=1; i<=NF; i++) { sub(/^ +| +$/, \"\", $i); if ($i != \"\") printf \"%s, \", $i, $i } }' | sed 's/, $//')\"; done | sort --numeric --reverse)]")))