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
3 changes: 0 additions & 3 deletions website/rspress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ export default defineConfig({
exclude: ['**/zh/shared/**', '**/en/shared/**', './theme'],
},
themeConfig: {
footer: {
message: 'Copyright © 2024 ByteDance.',
},
socialLinks: [
{
icon: 'github',
Expand Down
21 changes: 9 additions & 12 deletions website/theme/components/Copyright.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import { memo } from 'react';
import { usePageData } from 'rspress/runtime';
import styles from './Copyright.module.scss';

export const CopyRight = memo(() => {
const { siteData } = usePageData();
const { message } = siteData.themeConfig.footer || {};

if (!message) {
return null;
}

export const CopyRight = () => {
return (
<footer className={styles.copyRight}>
<div className={styles.copyRightInner}>
<div className={styles.copyRightText}>{message}</div>
<div className={styles.copyRightText}>
<p className="mb-2">
Rslib is free and open source software released under the MIT
license.
</p>
<p>© 2024-present ByteDance Inc.</p>
</div>
</div>
</footer>
);
});
};
Loading