diff --git a/src/main.lisp b/src/main.lisp index 38dfade..c354ca1 100644 --- a/src/main.lisp +++ b/src/main.lisp @@ -12,9 +12,16 @@ (defun start-app () (unless *handler* - (setf *handler* (clack:clackup (lack:builder pages:*index-app*) - :address "localhost" - :port 3000)))) + (setf *handler* + (clack:clackup (lack:builder + (:static + :path "/static/" + :root (asdf:system-relative-pathname + :hp + "static/")) + pages:*index-app*) + :address "localhost" + :port 3000)))) (defun stop-app () (when *handler* diff --git a/src/ui/layout.lisp b/src/ui/layout.lisp index b6c30cb..7132399 100644 --- a/src/ui/layout.lisp +++ b/src/ui/layout.lisp @@ -10,7 +10,7 @@ <html> <head> <title>skyizwhite.dev</title> - <script src="https://unpkg.com/htmx.org@1.3.1"></script> + <script src="/static/htmx.min.js" ></script> </head> <body>,@(progn children)</body> </html>)