Improve style
This commit is contained in:
parent
efcb6087b3
commit
1b407e7d12
4 changed files with 8 additions and 11 deletions
src
|
@ -18,20 +18,18 @@
|
|||
(article :class "prose max-w-none"
|
||||
(h1 title)
|
||||
(raw! content)
|
||||
(p :class "text-right"
|
||||
(p :class "text-right text-sm text-gray-500"
|
||||
(and published-at
|
||||
(hsx
|
||||
(span
|
||||
"(Published: "
|
||||
"Published: "
|
||||
(|time| :datetime (datetime published-at)
|
||||
(asctime published-at))
|
||||
")")))
|
||||
(asctime published-at)))))
|
||||
(and revised-at
|
||||
(hsx
|
||||
(<>
|
||||
(br)
|
||||
(span
|
||||
"(Last updated: "
|
||||
"Last updated: "
|
||||
(|time| :datetime (datetime revised-at)
|
||||
(asctime revised-at))
|
||||
")")))))))))
|
||||
(asctime revised-at)))))))))))
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
(defcomp ~pc-header ()
|
||||
(hsx
|
||||
(header :class "hidden md:flex justify-between py-4 border-b-1 top-0 bg-stone-100"
|
||||
(header :class "hidden md:flex justify-between py-4 border-b-1 top-0 bg-white"
|
||||
(p :class "z-20 text-3xl font-bold"
|
||||
(a :preload "mouseover" :href "/" "skyizwhite"))
|
||||
(nav :class "flex items-end"
|
||||
|
@ -27,7 +27,7 @@
|
|||
(hsx
|
||||
(header
|
||||
:x-data "{ open: false }"
|
||||
:class "flex md:hidden justify-between py-2 border-b-1 top-0 bg-stone-100"
|
||||
:class "flex md:hidden justify-between py-2 border-b-1 top-0 bg-white"
|
||||
(p :class "z-20 text-2xl font-bold"
|
||||
(a :preload "mousedown" :href "/" "skyizwhite"))
|
||||
(div
|
||||
|
|
|
@ -37,5 +37,4 @@
|
|||
(and (not (dev-mode-p)) "preload"))
|
||||
:hx-boost "true" :hx-swap "transition:true"
|
||||
:hx-target-404 "body" :hx-target-5* "body"
|
||||
:class "bg-stone-100"
|
||||
(~layout result)))))))))
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
:href (format nil "/blog/~a" (getf item :id))
|
||||
(span :class "font-bold"
|
||||
"・ " (getf item :title))
|
||||
(span :class "text-sm text-gray-400 ml-2"
|
||||
(span :class "text-sm text-gray-500 ml-2"
|
||||
"(" (asctime (getf item :published-at)) ")"))))))
|
||||
;TODO: pagenation
|
||||
))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue