Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ module.exports = {
defaultMode: "dark",
respectPrefersColorScheme: false,
},
// announcementBar: {
// id: "kubecon-2026-europe", // Increment on change
// content: 'theme.announcementBar.message',
// },
announcementBar: {
id: "hami-meetup-shenzhen-3rd", // Increment on change
content: 'theme.announcementBar.message',
},
navbar: {
title: "HAMi",
logo: {
Expand Down
2 changes: 1 addition & 1 deletion i18n/zh/docusaurus-theme-classic/announcementBar.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"theme.announcementBar.message": "📍 HAMi 亮相 <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/\">KubeCon 欧洲</a>!Project Pavilion P-13B 展位 | 3 月 24 日 15:10-19:00 | 3 月 26 日 12:30-14:00"
"theme.announcementBar.message": "📢 第三届 HAMi Meetup 深圳站(4月25日周六下午)正在报名中!<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://hdxu.cn/1GN1S\">点击报名 →</a>"
}
6 changes: 6 additions & 0 deletions src/data/adopters.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,5 +415,11 @@
"nameZh": "博维智慧科技",
"logo": "/img/adopters/boardware.jpg",
"website": "https://www.boardware.com.mo"
},
{
"name": "Weidian",
"nameZh": "微店",
"logo": "/img/adopters/weidian.png",
"website": "https://www.weidian.com/"
}
]
4 changes: 4 additions & 0 deletions src/theme/AnnouncementBar/Content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export default function AnnouncementBarContent(props) {
const localizedContent =
localeMessages[content] ?? fallbackMessages[content] ?? content;

if (!localizedContent || localizedContent === content) {
return null;
}

return (
<div
{...props}
Expand Down
Binary file added static/img/adopters/weidian.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading