mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 17:40:55 +08:00
19 lines
696 B
Plaintext
19 lines
696 B
Plaintext
.menus_items
|
|
each value, label in theme.menu
|
|
if !Array.isArray(value)
|
|
.menus_item
|
|
a.site-page(href=url_for(trim(value.split('||')[0])))
|
|
i.fa-fw(class=trim(value.split('||')[1]))
|
|
span=' '+label
|
|
else
|
|
.menus_item
|
|
a.site-page
|
|
i.fa-fw(class=trim(label.split('||')[1]) aria-hidden="true")
|
|
span=' '+ trim(label.split('||')[0])
|
|
i.fa.fa-chevron-down.menus-expand(aria-hidden="true")
|
|
ul.menus_item_child
|
|
each i in value
|
|
li
|
|
a.site-page(href=url_for(trim(i.split('||')[1])))
|
|
i.fa-fw(class=trim(i.split('||')[2]))
|
|
span=' '+trim(i.split('||')[0]) |