mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-12 22:17:06 +08:00
22 lines
770 B
Plaintext
22 lines
770 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])))
|
|
if value.split('||')[1]
|
|
i.fa-fw(class=trim(value.split('||')[1]))
|
|
span=' '+label
|
|
else
|
|
.menus_item
|
|
a.site-page
|
|
if label.split('||')[1]
|
|
i.fa-fw(class=trim(label.split('||')[1]) )
|
|
span=' '+ trim(label.split('||')[0])
|
|
i.fas.fa-chevron-down.menus-expand
|
|
ul.menus_item_child
|
|
each i in value
|
|
li
|
|
a.site-page(href=url_for(trim(i.split('||')[1])))
|
|
if i.split('||')[2]
|
|
i.fa-fw(class=trim(i.split('||')[2]))
|
|
span=' '+trim(i.split('||')[0]) |