File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ import ' ../styles/globals.css' ;
2+
3+ export default function Nextra({ Component , pageProps }) {
4+ return <Component { ... pageProps } />;
5+ }
Original file line number Diff line number Diff line change 11---
22title : CommandKit - A Discord.js Handler
33---
4+
5+ <div className = " text-center mt-10" >
6+ <h1 className = " text-5xl font-bold mb-5" >CommandKit</h1 >
7+ <p >A Discord.js handler for commands and events.</p >
8+ </div >
Original file line number Diff line number Diff line change @@ -15,6 +15,24 @@ const config: DocsThemeConfig = {
1515 } ;
1616 }
1717 } ,
18+ gitTimestamp ( { timestamp } ) {
19+ const { locale, asPath } = useRouter ( ) ;
20+
21+ if ( asPath !== '/' ) {
22+ return (
23+ < >
24+ Last updated on:{ ' ' }
25+ < time dateTime = { timestamp . toISOString ( ) } >
26+ { timestamp . toLocaleDateString ( locale , {
27+ day : 'numeric' ,
28+ month : 'long' ,
29+ year : 'numeric' ,
30+ } ) }
31+ </ time >
32+ </ >
33+ ) ;
34+ }
35+ } ,
1836} ;
1937
2038export default config ;
You can’t perform that action at this time.
0 commit comments