Skip to content

Commit

Permalink
Merge pull request #284 from Konfuze/fix-footer-year
Browse files Browse the repository at this point in the history
Sets the current year for the copyright in the footer
  • Loading branch information
BrandonRomano authored Jan 22, 2025
2 parents fab2d0d + 9faa62c commit 71ab93c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/layouts/nav-footer-layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ type NavFooterLayoutProps = RootLayoutProps & {
};

export default function NavFooterLayout(props: NavFooterLayoutProps) {
const currentYear = new Date().getFullYear();

const { children, docsNavTree, ...otherProps } = props;
return (
<RootLayout {...otherProps}>
Expand All @@ -44,7 +46,7 @@ export default function NavFooterLayout(props: NavFooterLayoutProps) {
href: "/download",
},
]}
copyright="© 2024 Mitchell Hashimoto"
copyright={${currentYear} Mitchell Hashimoto`}
/>
</RootLayout>
);
Expand Down

0 comments on commit 71ab93c

Please sign in to comment.