diff options
author | colin <colin@cicadas.surf> | 2023-01-25 06:57:45 -0800 |
---|---|---|
committer | colin <colin@cicadas.surf> | 2023-01-25 06:57:45 -0800 |
commit | 698fba0a307dda4b28f16f92a44f095c18b97820 (patch) | |
tree | aef3dd389d8267477877f51db8d56c6c76406141 | |
parent | a7feb312d9b86c68ff93a191359756eff1645d87 (diff) |
Fix: hall-of-heroes
-rw-r--r-- | pages.lisp | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -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)))))) |