Provide default container string
This commit is contained in:
parent
5cc01e31b8
commit
32a9deb190
2 changed files with 9 additions and 3 deletions
|
@ -180,13 +180,17 @@ Example usage:
|
|||
:class "d-inline-flex p-2 m-1"
|
||||
(t9n "skip-link")))
|
||||
,@body
|
||||
(:div :class ,(concatenate 'string "container-" container)
|
||||
(:div :class (if ,container
|
||||
(concatenate 'string "container-" ,container)
|
||||
"container")
|
||||
(:h1 ,main-heading)))))
|
||||
|
||||
(defmacro body-main (container &body body)
|
||||
`(spinneret:with-html
|
||||
(:main :id "main-content"
|
||||
:class ,(concatenate 'string "container-" container)
|
||||
:class (if ,container
|
||||
(concatenate 'string "container-" ,container)
|
||||
"container")
|
||||
,@body)))
|
||||
|
||||
(defun remove-special-chars (str)
|
||||
|
|
|
@ -239,7 +239,9 @@ ITEMS: A plist of nav items in the form of :key \"url\" pairs"
|
|||
`(spinneret:with-html
|
||||
(:nav :class "navbar navbar-expand-lg bg-body-tertiary mb-5"
|
||||
:aria-label "Main"
|
||||
(:div :class ,(concatenate 'string "container-" container)
|
||||
(:div :class (if ,container
|
||||
(concatenate 'string "container-" ,container)
|
||||
"container")
|
||||
(:a :class "navbar-brand" :href ,*brand-url* ,*brand-name*)
|
||||
(:button :class "navbar-toggler" :type "button"
|
||||
:data-bs-toggle "collapse" :data-bs-target "#navbarNav"
|
||||
|
|
Loading…
Add table
Reference in a new issue