diff --git a/src/app.lisp b/src/app.lisp index f1846ce..75e37eb 100644 --- a/src/app.lisp +++ b/src/app.lisp @@ -24,6 +24,8 @@ (defun update () (jg:clear-middlewares *app*) (jg:install-middleware *app* mw:*public-files*) + (jg:static-path *app* "/scripts/" "src/scripts/") + (jg:static-path *app* "/styles/" "src/styles/") (fbr:assign-routes *app* :system "hp" :directory "src/routes")) diff --git a/src/components/global/metadata.lisp b/src/components/global/metadata.lisp index 1198c09..3c3b9ae 100644 --- a/src/components/global/metadata.lisp +++ b/src/components/global/metadata.lisp @@ -8,14 +8,16 @@ (pi:h (head (meta :charset "UTF-8") - (script :src "/js/htmx.js") - (script :src "/js/htmx-ext/head-support.js") - (script :src "/js/alpine.js" :defer t) - (link :rel "stylesheet" :type "text/css" :href "/style/ress.css") - (link :rel "stylesheet" :type "text/css" :href "/style/global.css") + (script :src "/scripts/htmx.js") + (script :src "/scripts/htmx-ext/head-support.js") + (script :src "/scripts/alpine.js" :defer t) + (link :rel "stylesheet" :type "text/css" :href "/styles/ress.css") + (link :rel "stylesheet" :type "text/css" :href "/styles/global.css") (link :rel "preconnect" :href "https://fonts.googleapis.com") (link :rel "preconnect" :href "https://fonts.gstatic.com" :crossorigin t) - (link :rel "stylesheet" :href "https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap") + (link + :rel "stylesheet" + :href "https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap") (title (format nil "~@[~a - ~]skyizwhite.dev" title)) (meta :name "description" diff --git a/public/js/alpine.js b/src/scripts/alpine.js similarity index 100% rename from public/js/alpine.js rename to src/scripts/alpine.js diff --git a/public/js/htmx-ext/head-support.js b/src/scripts/htmx-ext/head-support.js similarity index 100% rename from public/js/htmx-ext/head-support.js rename to src/scripts/htmx-ext/head-support.js diff --git a/public/js/htmx.js b/src/scripts/htmx.js similarity index 100% rename from public/js/htmx.js rename to src/scripts/htmx.js diff --git a/public/style/global.css b/src/styles/global.css similarity index 100% rename from public/style/global.css rename to src/styles/global.css diff --git a/public/style/ress.css b/src/styles/ress.css similarity index 100% rename from public/style/ress.css rename to src/styles/ress.css