Explain it good
This commit is contained in:
parent
13699d163d
commit
0de1361b2d
2 changed files with 27 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue