Explain it good

This commit is contained in:
Cadence Ember 2025-04-09 21:27:12 +12:00
parent 13699d163d
commit 0de1361b2d
2 changed files with 27 additions and 2 deletions

View file

@ -1,5 +1,8 @@
mixin navi(key, value, icon, text)
a.s-navigation--item(href="./" + and({shape: query && query.shape || "grid", [key]: value}) class={"is-selected": query && query[key] === value})&attributes(attributes)
-
let bits = {[key]: value}
if (isStatsPage) bits.shape = "grid"
a.s-navigation--item(href="./" + and(bits) class={"is-selected": query && query[key] === value})&attributes(attributes)
if icon
!= icons.get(icon)
if text