Skip to content

Commit ced36c4

Browse files
Copilotsunshineg
andcommitted
Update navigation: Change GitHub to Heroes and add back to homepage button
Co-authored-by: sunshineg <1147886+sunshineg@users.noreply.github.com>
1 parent 39d0177 commit ced36c4

File tree

6 files changed

+11
-20
lines changed

6 files changed

+11
-20
lines changed

dist/.DS_Store

-6 KB
Binary file not shown.

dist/assets/index-BpMRcZUZ.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

dist/assets/index-D3t9aTd_.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<meta property="og:description" content="Believing in Openness to Build a Co-Evolving Human-AI Civilization." />
1515
<meta property="og:type" content="website" />
1616
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>_</text></svg>">
17-
<script type="module" crossorigin src="./assets/index-BpMRcZUZ.js"></script>
18-
<link rel="stylesheet" crossorigin href="./assets/index-D3t9aTd_.css">
17+
<script type="module" crossorigin src="./assets/index-BX30EDEG.js"></script>
18+
<link rel="stylesheet" crossorigin href="./assets/index-C8gjWuvG.css">
1919
</head>
2020
<body>
2121
<div id="root"></div>

ossheroes/themes/OpenSouceWin/layout/_partial/menu.ejs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- 导航 -->
22
<nav class="navbar navbar-expand-lg navbar-dark" id="navWrap">
33
<div class="container container-fluid">
4-
<a class="navbar-brand" href="/"><%= config.title %></a>
4+
<a class="navbar-brand" href="<%= config.url %>/"><%= config.title %></a>
55
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
66
<span class="navbar-toggler-icon"></span>
77
</button>
@@ -36,6 +36,9 @@
3636
<% } %>
3737
</ul>
3838
</li>
39+
<li class="nav-item">
40+
<a href="https://opensource.win/" class="nav-link">回到官网</a>
41+
</li>
3942
</ul>
4043
</div>
4144
</div>

src/components/Navbar.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Button } from "@/components/ui/button";
22
import { useLanguage } from "@/contexts/LanguageContext";
3-
import { Languages, Terminal, Github, Share2 } from "lucide-react";
4-
import { cn } from "@/lib/utils";
3+
import { Languages, Terminal } from "lucide-react";
54

65
export function Navbar() {
76
const { language, toggleLanguage } = useLanguage();
@@ -25,9 +24,10 @@ export function Navbar() {
2524
{language === 'en' ? 'EN / 中文' : '中文 / EN'}
2625
</Button>
2726

28-
<Button variant="outline" size="sm" className="hidden sm:flex">
29-
<Github className="mr-2 h-4 w-4" />
30-
GitHub
27+
<Button variant="outline" size="sm" className="hidden sm:flex" asChild>
28+
<a href="https://opensource.win/ossheroes/">
29+
Heroes
30+
</a>
3131
</Button>
3232
</div>
3333
</div>

0 commit comments

Comments
 (0)