Improve assets
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
|||
.qlot
|
||||
bin/tailwindcss
|
||||
static/style/dist.css
|
||||
assets/style/dist.css
|
||||
.env
|
||||
|
|
|
@ -13,7 +13,7 @@ RUN mkdir -p ./bin \
|
|||
&& chmod +x tailwindcss-linux-x64 \
|
||||
&& mv tailwindcss-linux-x64 ${TW_BIN}
|
||||
|
||||
RUN ${TW_BIN} -i ./static/style/global.css -o ./static/style/dist.css --minify
|
||||
RUN ${TW_BIN} -i ./assets/style/global.css -o ./assets/style/dist.css --minify
|
||||
|
||||
RUN qlot install --quiet --no-color
|
||||
|
||||
|
|
4
Makefile
|
@ -1,7 +1,7 @@
|
|||
TW_VERSION=4.1.3
|
||||
TW_BIN=./bin/tailwindcss
|
||||
STYLE_SRC=./static/style/global.css
|
||||
STYLE_DIST=./static/style/dist.css
|
||||
STYLE_SRC=./assets/style/global.css
|
||||
STYLE_DIST=./assets/style/dist.css
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
|
||||
|
|
Before ![]() (image error) Size: 65 KiB After ![]() (image error) Size: 65 KiB ![]() ![]() |
Before ![]() (image error) Size: 21 KiB After ![]() (image error) Size: 21 KiB ![]() ![]() |
Before Width: 48px | Height: 48px | Size: 15 KiB After Width: 48px | Height: 48px | Size: 15 KiB |
Before (image error) Size: 147 KiB After (image error) Size: 147 KiB |
Before (image error) Size: 722 B After (image error) Size: 722 B |
Before (image error) Size: 642 B After (image error) Size: 642 B |
Before (image error) Size: 695 B After (image error) Size: 695 B |
Before (image error) Size: 640 B After (image error) Size: 640 B |
Before (image error) Size: 800 B After (image error) Size: 800 B |
Before ![]() (image error) Size: 263 KiB After ![]() (image error) Size: 263 KiB ![]() ![]() |
Before ![]() (image error) Size: 73 KiB After ![]() (image error) Size: 73 KiB ![]() ![]() |
Before ![]() (image error) Size: 367 KiB After ![]() (image error) Size: 367 KiB ![]() ![]() |
|
@ -21,8 +21,7 @@
|
|||
app
|
||||
:debug (string= (website-env) "dev"))))
|
||||
(install-middleware app *trim-trailing-slash*)
|
||||
(static-path app "/img/" "static/img/")
|
||||
(static-path app "/style/" "static/style/")
|
||||
(static-path app "/assets/" "assets/")
|
||||
(configure app)))
|
||||
|
||||
*app*
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
:description "The personal website of Akira Tempaku (paku)"
|
||||
:canonical nil
|
||||
:type "website"
|
||||
:image (list :url (path->url "/img/og.jpg")
|
||||
:image (list :url (path->url "/assets/img/og.jpg")
|
||||
:height 1024
|
||||
:width 1024)
|
||||
:error nil))
|
||||
|
@ -56,9 +56,9 @@
|
|||
(meta :property "og:image:width" :content (getf image :width))
|
||||
(meta :property "og:image:height" :content (getf image :height))
|
||||
(link :rel "canonical" :href (path->url (or canonical path))))))
|
||||
(link :rel "icon" :type "image/png" :href "/img/favicon-96x96.png" :sizes "96x96")
|
||||
(link :rel "icon" :type "image/svg+xml" :href "/img/favicon.svg")
|
||||
(link :rel "shortcut icon" :href "/img/favicon.ico")
|
||||
(link :rel "apple-touch-icon" :sizes "180x180" :href "/img/apple-touch-icon.png")
|
||||
(link :rel "icon" :type "image/png" :href "/assets/img/favicon-96x96.png" :sizes "96x96")
|
||||
(link :rel "icon" :type "image/svg+xml" :href "/assets/img/favicon.svg")
|
||||
(link :rel "shortcut icon" :href "/assets/img/favicon.ico")
|
||||
(link :rel "apple-touch-icon" :sizes "180x180" :href "/assets/img/apple-touch-icon.png")
|
||||
(meta :name "apple-mobile-web-app-title" :content "skyizwhite")
|
||||
(link :rel "manifest" :href "/img/site.webmanifest"))))))
|
||||
(link :rel "manifest" :href "/assets/img/site.webmanifest"))))))
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
(defcomp ~scripts ()
|
||||
(hsx
|
||||
(<>
|
||||
(link :rel "stylesheet" :href (bust-cache "/style/dist.css"))
|
||||
(link :rel "stylesheet" :href (bust-cache "/assets/style/dist.css"))
|
||||
(link :rel "preconnect" :href "https://fonts.gstatic.com" :crossorigin t)
|
||||
(link :rel "preconnect" :href "https://fonts.googleapis.com")
|
||||
(link
|
||||
|
|
|
@ -11,19 +11,19 @@
|
|||
(defparameter *links*
|
||||
'(("Keyoxide"
|
||||
"https://keyoxide.org/f39d5b2c951d16732a5cd3528f0c1a22f26d7e62"
|
||||
"/img/icon/key.svg")
|
||||
"/assets/img/icon/key.svg")
|
||||
("GitHub"
|
||||
"https://github.com/skyizwhite"
|
||||
"/img/icon/github.svg")
|
||||
"/assets/img/icon/github.svg")
|
||||
("Forgejo"
|
||||
"https://code.skyizwhite.dev/paku"
|
||||
"/img/icon/forgejo.svg")
|
||||
"/assets/img/icon/forgejo.svg")
|
||||
("Fediverse"
|
||||
"https://himagine.club/@skyizwhite"
|
||||
"/img/icon/discussion.svg")
|
||||
"/assets/img/icon/discussion.svg")
|
||||
("Status"
|
||||
"https://status.skyizwhite.dev"
|
||||
"/img/icon/server.svg")))
|
||||
"/assets/img/icon/server.svg")))
|
||||
|
||||
(defun handle-get (params)
|
||||
(declare (ignore params))
|
||||
|
|