Add solitude

This commit is contained in:
IF-chan
2024-07-05 21:01:19 +08:00
parent 26d71c4fbc
commit 71758b9fce
289 changed files with 23277 additions and 0 deletions
@@ -0,0 +1,13 @@
- var menu = theme.nav.group
if menu
.back-menu-list-groups
each value, label in menu
.back-menu-list-group
.back-menu-list-title= label
.back-menu-list
each data, label in value
- var array = data.split('||')
a.back-menu-item(href=url_for(trim(array[0])), title=label)
if array[1]
img.nolazyload.back-menu-item-icon(src=trim(array[1]), alt=label)
span.back-menu-item-text= label
@@ -0,0 +1,20 @@
- var menu = theme.nav.menu
if menu
.menus_items
each value, label in menu
.menus_item
if typeof value !== 'object'
a.site-page(href=url_for(value))
span= label
else
a.site-page(href="javascript:void(0);")
span= label
ul.menus_item_child
each childValue, childLabel in value
li
- var array = childValue.split('||')
a.site-page.child(href=url_for(trim(array[0])))
if array[1]
i.solitude(class=array[1])
span= childLabel
@@ -0,0 +1,24 @@
- var custom = theme.nav.right.custom || []
each item in custom
.nav-button(id=item.id)
a.site-page(href=url_for(item.url) || 'javascript:void(0);', onclick=item.onclick, title=item.title || '')
i.solitude(class=item.icon || '')
if theme.nav.right.random
.nav-button#randomPost_button
a.site-page(onclick="toRandomPost()", title=_p('nav.randompost'), href="javascript:void(0);")
i.solitude.st-dice-line
if theme.search.enable
.nav-button#search-button
a.site-page.social-icon.search(href="javascript:void(0);", title=_p('nav.search'))
i.solitude.st-search-line
if theme.nav.right.console
.nav-button#nav-console
a.console_switchbutton(onclick="sco.showConsole()", title=_p('nav.console'), href="javascript:void(0);")
i.solitude.st-dashboard-fill
.nav-button#nav-totop(onclick="sco.toTop()")
a.totopbtn
i.solitude.st-arrow-up-line
span#percent= "0"
#toggle-menu
a.site-page
i.solitude.st-menu-line