Skip to content

Commit

Permalink
Update copyright year dynamically to reflect the current year (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Jun 24, 2024
1 parent f0ae3c4 commit f4df2a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/theme/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, { FC } from 'react';
const ApacheSvg = require('@site/static/img/apache/incubator.svg').default;

const Footer: FC = () => {
const year = new Date().getFullYear();
return (
<footer className="footer">
<div className="container py-3">
Expand All @@ -20,7 +21,7 @@ const Footer: FC = () => {
</div>

<div className="my-3">
<span>Copyright © 2023 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.</span>
<span>Copyright © 2023 - {year} The Apache Software Foundation, Licensed under the Apache License, Version 2.0.</span>
<br />
<span>Apache, the names of Apache projects, and the feather logo are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries.</span>
</div>
Expand Down

0 comments on commit f4df2a9

Please sign in to comment.