-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Description
Is your feature request related to a problem? Please describe.
Currently, configuring static footer copyright text in themeConfig (e.g., copyright: 'Copyright © 2024') is straightforward.
Describe the solution you'd like
// .vitepress/config.mjs
export default {
themeConfig: {
footer: {
copyright: Copyright © 2019- ' + new Date().getFullYear() + ' vitepress
}
}
}Describe alternatives you've considered
It is proposed to support a simple dynamic interpolation syntax for the footer.copyright configuration option, allowing it to automatically generate and update the current year.
Additional context
After configuration, the footer should automatically display:
Copyright © 2019-2025(in 2025)Copyright © 2019-2026(automatically updates in 2026)
Validations
- Follow our Code of Conduct
- Read the docs.
- Read the Contributing Guidelines.
- Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
No labels