You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
1.2 KiB

-
const navbarOptions = {
title: siteConfig.site_title,
}
nav.navbar(class="relative")
.placeholder(class="h-[45px] w-full opacity-0")
.fixed-container(class="shadow fixed bg-white h-[45px] top-0 left-0 right-0 z-10")
.container.clearfix(class="h-full")
.navbar-brand
a(href="/" class="text-[20px]") #{navbarOptions.title}
//- .left.menu.desktop-only
//- a.menu-item(
//- href="/articles"
//- class=(currentPath === '/articles' || currentPath === '/articles/'
//- ? 'text-blue-600 font-bold border-b-2 border-blue-600'
//- : 'text-gray-700 hover:text-blue-600 hover:border-b-2 hover:border-blue-400'
//- )
//- ) 所有文章
if !user
.right.menu.desktop-only
a.menu-item(href="/login") 登录
//- a.menu-item(href="/register") 注册
else
.right.menu.desktop-only
a.menu-item(href="/profile")
span 欢迎您,
span.font-semibold #{user.name || user.username}
a.menu-item(href="/notice")
.fe--notice-active
a.menu-item(hx-post="/logout") 退出