Make some data global available

This commit is contained in:
Marcus Kammer 2025-02-04 18:17:47 +01:00
parent ffbc5a0cdf
commit 79067d71b8
Signed by: marcuskammer
GPG key ID: C374817BE285268F

View file

@ -45,20 +45,38 @@
(unless (uiop:directory-exists-p #P"public/") (unless (uiop:directory-exists-p #P"public/")
(uiop:ensure-all-directories-exist '(#P"public/"))) (uiop:ensure-all-directories-exist '(#P"public/")))
(defparameter *brand-name* "metalisp")
(defparameter *brand-url* "/")
(defparameter *main-headline* "Crafting Software with the Power of Lisp")
(defparameter *index-html* (defparameter *index-html*
(with-page (:title "metalisp.dev projects") (with-page (:title "metalisp.dev projects")
(with-body-header nil "Crafting Software with the Power of Lisp" *lang* ;; --
(with-navbar nil "metalisp" "/" nil nil)) ;; Body Head
;; --
(with-body-header nil *main-headline* *lang*
(with-navbar nil *brand-name* *brand-url* nil nil))
;; --
;; Body Main
;; --
(with-body-main nil (with-body-main nil
;; --
;; Introduction ;; Introduction
;; --
(with-section (with-section
(with-title-bar "About metalisp") (with-title-bar "About metalisp")
(:raw (md-file-to-html-string "introduction.md"))) (:raw (md-file-to-html-string "introduction.md")))
;; --
;; News ;; News
;; --
(with-section (with-section
(with-title-bar "News") (with-title-bar "News")
(:raw (md-file-to-html-string "news.md"))) (:raw (md-file-to-html-string "news.md")))
;; --
;; Active Projects ;; Active Projects
;; --
(with-section (with-section
(with-title-bar "Active Projects") (with-title-bar "Active Projects")
(with-section-row (with-section-row
@ -68,7 +86,9 @@
:card-header cheader :card-header cheader
:card-items citems :card-items citems
:card-body (btn (:url curl) (t9n "view-details" *lang*))))))) :card-body (btn (:url curl) (t9n "view-details" *lang*)))))))
;; --
;; Contact ;; Contact
;; --
(with-section (with-section
(with-title-bar "Contact") (with-title-bar "Contact")
(with-list-group nil (with-list-group nil