Skip to content

Commit

Permalink
fix: navbar style invalid in english version
Browse files Browse the repository at this point in the history
  • Loading branch information
kuizuo committed Nov 1, 2024
1 parent 248b2a8 commit 529dce6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 44 deletions.
14 changes: 13 additions & 1 deletion i18n/en/docusaurus-theme-classic/navbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@
"message": "Projects",
"description": "Navbar item with label 项目"
},
"item.label.友链": {
"message": "Projects",
"description": "Navbar item with label 项目"
},
"item.label.关于": {
"message": "About",
"description": "Navbar item with label 关于"
},
"item.label.更多": {
"message": "More",
"description": "Navbar item with label 更多"
},
"item.label.标签": {
"message": "Tags",
"description": "Navbar item with label 标签"
Expand Down Expand Up @@ -59,4 +71,4 @@
"message": "Cloudreve",
"description": "Navbar item with label 网盘"
}
}
}
4 changes: 3 additions & 1 deletion src/pages/about.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ import social from '@site/data/social'

### 兴趣爱好

- **手指极限** 入坑长达 8 年(现已退坑),如转笔、魔方、花切等有关手指旋转的都能够杂耍一番, 现在偶尔还会转转卡片/手机。我不擅长录制,因此没留下多少[素材](/videos)
- **手指极限** 入坑长达 8 年(现已退坑),如转笔、魔方、花切等有关手指旋转的都能够杂耍一番。

- **电音迷** 歌单只有电音,也只听电音。戴上耳机,沉浸在无限律动之中。有生之年定要制作首电子音乐。

- **编程开发** 将想法付诸实践, 享受创造的乐趣。

> 生命不息,折腾不止。
### 我的设备

- MacBook Pro M2 14 (买完 3 个月后, 苹果出 M3 了...)
Expand Down
41 changes: 0 additions & 41 deletions src/pages/videos/index.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/theme/Navbar/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function NavbarLayout({ children }: Props): JSX.Element {
const { navbarRef, isNavbarVisible } = useHideableNavbar(hideOnScroll)

const location = useLocation()
const isHomePage = location.pathname === '/'
const isHomePage = location.pathname === '/' || location.pathname === '/en/'

return (
<nav
Expand Down

0 comments on commit 529dce6

Please sign in to comment.