aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-07-12 22:30:03 +0200
committerlonkaars <loek@pipeframe.xyz>2021-07-12 22:30:03 +0200
commit4cd4de192922a965310637b11083171e49bca976 (patch)
tree08d526b992dd584dfbf289f979d00caddf0e9025 /pages
parentd87f86f3fb30462ea74d4a2603e1b132088509f0 (diff)
half redpwn ctf writeup (will continue tomorrow)
Diffstat (limited to 'pages')
-rw-r--r--pages/index.tsx6
-rw-r--r--pages/post/[id].tsx2
-rw-r--r--pages/search.tsx2
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={() => {