summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2023-01-25 06:57:45 -0800
committercolin <colin@cicadas.surf>2023-01-25 06:57:45 -0800
commit698fba0a307dda4b28f16f92a44f095c18b97820 (patch)
treeaef3dd389d8267477877f51db8d56c6c76406141
parenta7feb312d9b86c68ff93a191359756eff1645d87 (diff)
Fix: hall-of-heroes
-rw-r--r--pages.lisp23
1 files changed, 13 insertions, 10 deletions
diff --git a/pages.lisp b/pages.lisp
index c6041fe..fb4026b 100644
--- a/pages.lisp
+++ b/pages.lisp
@@ -40,16 +40,19 @@
(defun navbar ()
(with-html
- (:nav :class "navbar" :aria-label "Navigation"
- (:div :class "logo" :aria-label "DND logo" "DND")
- (:ul :class "nav-links" :aria-label "Nav links"
- (:li (:a :href "/hero" :aria-label "Hero profile" "🧝"))
- (:li (:a :href "/inventory" :aria-label "Inventory" "🎒"))
- (:li (:a :href "/quests" :aria-label "Quests" "📜"))
- (:li (:a :href "/tavern" :aria-label "Tavern" "🍺"))))))
+ (:nav :class "navbar" :aria-label "Navigation"
+ (:div :class "logo" :aria-label "DND logo" "DND")
+ (:ul :class "nav-links" :aria-label "Nav links"
+ (:li (:a :href "/hero" :aria-label "Hero profile" "🧝"))
+ (:li (:a :href "/inventory" :aria-label "Inventory" "🎒"))
+ (:li (:a :href "/quests" :aria-label "Quests" "📜"))
+ (:li (:a :href "/tavern" :aria-label "Tavern" "🍺"))))))
(defun hall-of-heroes ()
(with-html
- (:ul :class "hall-of-heroes")
- (loop for hero in (all-heroes)
- collect (:li (hero-name hero) "the" (hero-class hero) (hero-title hero)))))
+ (:ul :class "hall-of-heroes"
+ (dolist (hero (all-heroes))
+ (:li (hero-name hero)
+ "the"
+ (hero-class hero)
+ (hero-title hero))))))