fix nav
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
nav#nav
|
||||
//- 左侧区域:包含指纹菜单和网站名
|
||||
span#blog-info
|
||||
#ls-menu-container
|
||||
i.fas.fa-fingerprint
|
||||
@@ -26,18 +27,18 @@ nav#nav
|
||||
img.site-icon(src=url_for(theme.nav.logo) alt='Logo')
|
||||
if theme.nav.display_title
|
||||
span.site-name=config.title
|
||||
if globalPageType === 'post' && theme.nav.display_post_title
|
||||
a.nav-page-title(href=url_for('/'))
|
||||
span.site-name=(page.title || config.title)
|
||||
span.site-name
|
||||
i.fa-solid.fa-circle-arrow-left
|
||||
span= ' ' + _p('post.back_to_home')
|
||||
|
||||
#menus
|
||||
if theme.menu
|
||||
!= partial('includes/header/menu_item', {}, {cache: true})
|
||||
|
||||
//- 中间区域:关键!必须在 nav 下一级,以便 JS 切换类名
|
||||
if globalPageType === 'post' && theme.nav.display_post_title
|
||||
a.nav-page-title(href='javascript:void(0);' onclick='btf.scrollToDest(0, 500)')
|
||||
span.site-name=(page.title || config.title)
|
||||
|
||||
//- 右侧区域
|
||||
#nav-right
|
||||
if theme.menu
|
||||
#menus
|
||||
!= partial('includes/header/menu_item', {}, {cache: true})
|
||||
|
||||
if theme.search.use || true
|
||||
#random-post-button
|
||||
a.site-page.social-icon#random-post-link(href='javascript:void(0);' onclick='randomPost()')
|
||||
|
||||
Reference in New Issue
Block a user