Skip to content
Open
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
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const config = {
<img class="footer__logo" alt="Cloud Native Computing Foundation Logo" src="/img/landing/logo_cloudnative.png" />
</div>
<p>The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our <a href="https://www.linuxfoundation.org/trademark-usage" target="_blank" rel="noopener noreferrer">Trademark Usage</a> page.</p>
<p>${new Date().getFullYear()} @ Volcano Project Authors. All rights reserved.</p>
<p>__CURRENT_YEAR__ @ Volcano Project Authors. All rights reserved.</p>
`,
},
prism: {
Expand Down
2 changes: 1 addition & 1 deletion i18n/zh-Hans/docusaurus-theme-classic/footer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"copyright": {
"message": "\n <div class=\"footer-content\">\n <p>Volcano是 <a href=\"https://www.cncf.io/\" target=\"_blank\" rel=\"noopener noreferrer\">云原生计算基金会</a> 孵化项目</p>\n <div class=\"footer__logo-container\">\n <img class=\"footer__logo\" alt=\"云原生计算基金会徽标\" src=\"/img/landing/logo_cloudnative.png\" />\n </div>\n <p>Linux基金会已注册并使用其商标。有关Linux基金会的商标列表,请参见 <a href=\"https://www.linuxfoundation.org/trademark-usage\" target=\"_blank\" rel=\"noopener noreferrer\">商标使用</a> 页面。</p>\n <p>版权所有©2025 @ Volcano 项目作者所有。保留一切权利。</p>\n ",
"message": "\n <div class=\"footer-content\">\n <p>Volcano是 <a href=\"https://www.cncf.io/\" target=\"_blank\" rel=\"noopener noreferrer\">云原生计算基金会</a> 孵化项目</p>\n <div class=\"footer__logo-container\">\n <img class=\"footer__logo\" alt=\"云原生计算基金会徽标\" src=\"/img/landing/logo_cloudnative.png\" />\n </div>\n <p>Linux基金会已注册并使用其商标。有关Linux基金会的商标列表,请参见 <a href=\"https://www.linuxfoundation.org/trademark-usage\" target=\"_blank\" rel=\"noopener noreferrer\">商标使用</a> 页面。</p>\n <p>版权所有©__CURRENT_YEAR__ @ Volcano 项目作者所有。保留一切权利。</p>\n ",
"description": "The footer copyright"
}
}
15 changes: 15 additions & 0 deletions src/theme/Footer/Copyright/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react';

export default function FooterCopyright({copyright}) {
const currentYear = new Date().getFullYear();
const copyrightHtml = copyright.replace('__CURRENT_YEAR__', currentYear);

return (
<div
className="footer__copyright"
// Developer provided the HTML, so assume it's safe.
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{__html: copyrightHtml}}
/>
);
}