diff options
Diffstat (limited to 'pages')
-rw-r--r-- | pages/index.tsx | 6 | ||||
-rw-r--r-- | pages/post/[id].tsx | 2 | ||||
-rw-r--r-- | pages/search.tsx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/pages/index.tsx b/pages/index.tsx index 7f4c5fe..b8d10bc 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,7 +1,7 @@ import Button from '../components/button'; import PostCard from '../components/card'; import Chapters, { chapter } from '../components/chapters'; -import Navbar, { NavbarItem, MobileNavbar } from '../components/navbar'; +import Navbar, { MobileNavbar, NavbarItem } from '../components/navbar'; import Seperator from '../components/seperator'; import { ArticleMeta, getStaticProps as getBlogPage, RenderedArticle } from './post/[id]'; import { PostsInfo } from './search'; @@ -51,7 +51,7 @@ export default function Home(props: { /> </div> </div> - <MobileNavbar/> + <MobileNavbar /> <div className='contentWrapper'> {props.posts.map((post, index) => { return <> @@ -61,7 +61,7 @@ export default function Home(props: { {index == 0 && <> <h2>Recent posts</h2> <div className='recentPosts'> - {posts.posts.slice(0, 4).reverse().map(post => { + {posts.posts.reverse().slice(0, 4).map(post => { return <PostCard post={post} />; })} </div> diff --git a/pages/post/[id].tsx b/pages/post/[id].tsx index 70f58b9..46606f8 100644 --- a/pages/post/[id].tsx +++ b/pages/post/[id].tsx @@ -92,7 +92,7 @@ export default function Post(props: { <Chapters chapters={props.meta.chapters} /> </div> </div> - <MobileNavbar/> + <MobileNavbar /> <div className='contentWrapper'> <RenderedArticle content={props.content} /> </div> diff --git a/pages/search.tsx b/pages/search.tsx index b95d70e..6f5d1a7 100644 --- a/pages/search.tsx +++ b/pages/search.tsx @@ -149,7 +149,7 @@ export default function SearchPage() { <Navbar page='search' /> </div> </div> - <MobileNavbar/> + <MobileNavbar /> <div className='contentWrapper'> <SearchBar searchFunction={() => { |