Copyright Information
Rspress Theme AIm provides a built-in copyright information display feature at the bottom of the page, which can be configured according to your needs.
Configuration Method
Add copyright configuration in themeConfig of rspress.config.ts:
Configuration Options
poweredBy Configuration
poweredBy is an array, each element contains:
Default value:
Display Effect
When configured, the copyright information will be displayed at the bottom of the page in the format:
Where "Your Company" is a clickable link that redirects to the configured URL.
Usage Examples
Example 1: Basic Configuration
Display effect:
Example 2: Custom Year Range
Display effect:
Example 3: Custom Powered by
Display effect:
Example 4: Disable Powered by
Display effect:
Example 5: Complete Configuration
Display effect:
Style Customization
You can customize the copyright information style through CSS variables. Edit the theme/styles/index.css file:
Disable Copyright Information
To completely disable copyright information display, you can delete or comment out the relevant code in theme/index.tsx:
Technical Implementation
The copyright information feature is implemented through the following files:
theme/index.tsx- Theme entry, injects copyright componenttheme/components/CopyrightFooter.tsx- Copyright information componenttheme/styles/index.css- Style definitions
For further customization of the copyright information display logic, you can directly modify the CopyrightFooter.tsx component.