Add access

This commit is contained in:
Akira Tempaku 2025-05-17 23:48:56 +09:00
parent 4532ab3afe
commit 5a05f440a8
Signed by: paku
GPG key ID: 5B4E8402BCC50607
4 changed files with 11 additions and 4 deletions

1
qlfile
View file

@ -10,4 +10,5 @@ git microcms https://github.com/skyizwhite/microcms-lisp-sdk
ql local-time
ql function-cache
ql jonathan
ql access
ql flexi-streams

View file

@ -50,6 +50,10 @@
(:class qlot/source/ql:source-ql
:initargs (:%version :latest)
:version "ql-2020-09-25"))
("access" .
(:class qlot/source/ql:source-ql
:initargs (:%version :latest)
:version "ql-2024-10-12"))
("flexi-streams" .
(:class qlot/source/ql:source-ql
:initargs (:%version :latest)

View file

@ -1,7 +1,8 @@
(defpackage #:website/routes/about
(:use #:cl
#:hsx
#:jingle)
#:jingle
#:access)
(:import-from #:website/lib/cms
#:get-about)
(:import-from #:website/lib/time
@ -25,7 +26,7 @@
(div :class "flex justify-center"
(figure :class "flex flex-col items-center"
(img
:src (getf (getf about :avatar) :url)
:src (accesses about :avatar :url)
:alt "avatar" :class "size-40 rounded-xl shadow-sm avatar")
(figcaption (getf about :avatar-caption))))
(raw! (getf about :content))

View file

@ -1,6 +1,7 @@
(defpackage #:website/routes/index
(:use #:cl
#:hsx)
#:hsx
#:access)
(:import-from #:website/lib/cms
#:get-about)
(:export #:handle-get
@ -30,7 +31,7 @@
(hsx
(div :class "flex flex-col items-center justify-center h-full"
(img
:src (getf (getf about :avatar) :url)
:src (accesses about :avatar :url)
:alt "avatar" :class "size-40 rounded-xl shadow-sm avatar")
(div :class "flex flex-col items-center gap-2 py-6"
(h1 :class "font-bold text-2xl text-center"