dev.metalisp.sbt/src/examples/album/index.lisp

28 lines
850 B
Common Lisp
Raw Normal View History

2023-07-04 15:20:43 +02:00
(in-package :cl-sbt)
2023-07-04 16:42:47 +02:00
(load "src/examples/album/_navbar.lisp")
2023-07-05 16:07:28 +02:00
(load "src/examples/album/_main.lisp")
2023-07-04 16:42:47 +02:00
(defvar contact-examples
2023-07-04 15:20:43 +02:00
'(("Follow on Twitter" . "foo")
("Like on Facebook" . "foo")
("Email me" . "foo")))
2023-07-04 16:42:47 +02:00
(defvar about-example
2023-07-04 15:20:43 +02:00
"Add some information about the album below, the author, or any other background context. Make it a few sentences long so folks can pick up some informative tidbits. Then, link them off to some social networking sites or contact information.")
(defmacro header (&body body)
`(spinneret:with-html
(:header ,@body)))
2023-07-05 16:07:28 +02:00
(defmacro footer (&body body)
`(spinneret:with-html
(:footer ,@body)))
(defun show-album-page (title)
(with-page (:title title)
2023-07-04 16:42:47 +02:00
(header (show-navbar-header about-example contact-examples)
2023-07-05 16:07:28 +02:00
(show-navbar "brand" "#" "foo"))
(main "foo")
(footer "bar")))