Switch site language to English

This commit is contained in:
Akira Tempaku 2025-05-18 23:34:03 +09:00
commit 7e8fe6978d
Signed by: paku
GPG key ID: 5B4E8402BCC50607
3 changed files with 11 additions and 11 deletions

View file

@ -3,19 +3,19 @@
#:hsx) #:hsx)
(:import-from #:website/lib/time (:import-from #:website/lib/time
#:datetime #:datetime
#:jp-datetime) #:asctime)
(:export #:~article)) (:export #:~article))
(in-package #:website/components/article) (in-package #:website/components/article)
(defcomp ~article (&key title content revised-at draft-p) (defcomp ~article (&key title content revised-at draft-p)
(hsx (hsx
(<> (<>
(and draft-p (hsx (p :class "text-lg text-pink-500" "下書きモード"))) (and draft-p (hsx (p :class "text-lg text-pink-500" "Draft Mode")))
(article :class "prose max-w-none" (article :class "prose max-w-none"
(h1 title) (h1 title)
(raw! content) (raw! content)
(p :class "text-right" (p :class "text-right"
"(最終更新:" "(Last updated: "
(|time| :datetime (datetime revised-at) (|time| :datetime (datetime revised-at)
(jp-datetime revised-at)) (asctime revised-at))
""))))) ")")))))

View file

@ -4,9 +4,10 @@
#:reread-timezone-repository #:reread-timezone-repository
#:find-timezone-by-location-name #:find-timezone-by-location-name
#:parse-timestring #:parse-timestring
#:format-timestring) #:format-timestring
#:+asctime-format+)
(:export #:datetime (:export #:datetime
#:jp-datetime)) #:asctime))
(in-package #:website/lib/time) (in-package #:website/lib/time)
(reread-timezone-repository) (reread-timezone-repository)
@ -19,8 +20,7 @@
:format '(:year "-" (:month 2) "-" (:day 2) " " :format '(:year "-" (:month 2) "-" (:day 2) " "
(:hour 2) ":" (:min 2)))) (:hour 2) ":" (:min 2))))
(defun jp-datetime (timestring) (defun asctime (timestring)
(format-timestring nil (format-timestring nil
(parse-timestring timestring) (parse-timestring timestring)
:format '(:year "年" :month "月" :day "日" " " :format +asctime-format+))
:hour "時" :min "分")))

View file

@ -28,7 +28,7 @@
(set-response-header :content-type "text/html; charset=utf-8") (set-response-header :content-type "text/html; charset=utf-8")
(call-next-method app (call-next-method app
(render-to-string (render-to-string
(hsx (html :lang "ja" (hsx (html :lang "en"
(head (head
(~metadata :metadata (context :metadata)) (~metadata :metadata (context :metadata))
(~scripts)) (~scripts))