Skip to content

Commit

Permalink
feat:docs add blog
Browse files Browse the repository at this point in the history
Signed-off-by: jingyang <3161362058@qq.com>
  • Loading branch information
zjy365 committed Nov 15, 2023
1 parent 56772da commit 24eb909
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
5 changes: 5 additions & 0 deletions docs/website/docusaurus.config.js
Expand Up @@ -107,6 +107,11 @@ const config = {
to: "/self-hosting",
label: "Hosting"
},
{
position: "left",
to: "/blog",
label: "Blog"
},
{
position: "left",
to: "https://fael3z0zfze.feishu.cn/share/base/form/shrcnesSfEK65JZaAf2W6Fwz6Ad",
Expand Down
Expand Up @@ -18,5 +18,9 @@
"item.label.Start Now": {
"message": "在线使用",
"description": "Navbar item with label Start Now"
},
"item.label.Blog": {
"message": "博客",
"description": "Navbar item with label Blog"
}
}
}
2 changes: 1 addition & 1 deletion docs/website/src/components/NavBanner/index.tsx
Expand Up @@ -22,7 +22,7 @@ export default function NavBanner({
useEffect(() => {
const lastCloseTimestamp = +localStorage.getItem('bannerCloseTimestamp');
if (
window.location.hostname === 'localhost' &&
window.location.hostname === 'sealos.io' &&
(!lastCloseTimestamp || Date.now() - lastCloseTimestamp > 7 * 24 * 60 * 60 * 1000)
) {
setIsBannerVisible(true);
Expand Down
5 changes: 5 additions & 0 deletions docs/website/src/pages/components/Header/index.tsx
Expand Up @@ -27,6 +27,11 @@ const navbar = [
label: <Translate>Hosting</Translate>,
to: '/self-hosting '
},
{
key: 'blog',
label: <Translate>Blog</Translate>,
to: '/blog'
},
{
key: 'contact',
label: <Translate>Contact</Translate>,
Expand Down
7 changes: 6 additions & 1 deletion docs/website/src/pages/self-hosting/header/index.tsx
Expand Up @@ -24,7 +24,12 @@ const navbar = [
{
key: 'hosting',
label: <Translate>Hosting</Translate>,
to: '/self-hosting '
to: '/self-hosting'
},
{
key: 'blog',
label: <Translate>Blog</Translate>,
to: '/blog'
},
{
key: 'contact',
Expand Down

0 comments on commit 24eb909

Please sign in to comment.