diff --git a/components/Logo.tsx b/components/Logo.tsx
new file mode 100644
index 0000000..985117f
--- /dev/null
+++ b/components/Logo.tsx
@@ -0,0 +1,102 @@
+export const Logo = () => {
+ return (
+
+ );
+};
diff --git a/components/Navbar.tsx b/components/Navbar.tsx
index 3722b31..e930a6c 100644
--- a/components/Navbar.tsx
+++ b/components/Navbar.tsx
@@ -2,11 +2,12 @@ import Link from "next/link";
import { IoMenu as MenuIcon, IoClose as CloseIcon } from "react-icons/io5";
import { useState } from "react";
import { motion, AnimatePresence } from "framer-motion";
+import { Logo } from "./Logo";
const links = [
{ name: "blog", href: "/blog" },
{ name: "projects", href: "/projects" },
- { name: "github", href: "https://github.com/kookroach" },
+ { name: "github", href: "https://git.peroxy.dev/kookroach" },
];
export const Navbar = () => {
const [showMenu, setShowMenu] = useState(false);
@@ -16,9 +17,13 @@ export const Navbar = () => {
-
peroxy
+
+
+ peroxy
+ .dev
+
{links.map(({ name, href }) => (
diff --git a/content/blogs/first-blog.md b/content/blogs/first-blog.md
index 3e22ff6..8eee6bd 100644
--- a/content/blogs/first-blog.md
+++ b/content/blogs/first-blog.md
@@ -2,6 +2,7 @@
title: "My First Blog"
date: 27.12.2022
author: kookroach
+authorLink: https://git.peroxy.dev/kookroach
description: Short description
---
diff --git a/content/projects/first-project.md b/content/projects/first-project.md
new file mode 100644
index 0000000..e69de29
diff --git a/pages/blog/[slug].tsx b/pages/blog/[slug].tsx
index 018356f..2cd8313 100644
--- a/pages/blog/[slug].tsx
+++ b/pages/blog/[slug].tsx
@@ -10,8 +10,11 @@ import { MarkdownRenderingResult } from "../../types/types";
import { MainLayout } from "../../layouts/MainLayout";
import Link from "next/link";
import { IoMdArrowRoundBack as BackIcon } from "react-icons/io";
+import { BasicBlogProps } from ".";
export const BlogArticle = ({ frontMatter, html }: MarkdownRenderingResult) => {
+ const { title, author, date, description, authorLink } =
+ frontMatter as BasicBlogProps;
return (
@@ -21,12 +24,19 @@ export const BlogArticle = ({ frontMatter, html }: MarkdownRenderingResult) => {
- {frontMatter.date}
+ {date}
- {frontMatter.title}
+ {title}
- By: @{frontMatter.author}
+ By{" "}
+ {authorLink && (
+
+ @{author}
+
+ )}
+ {!authorLink && @{author}}
+ {description}
{
diff --git a/pages/index.tsx b/pages/index.tsx
index d30453d..daf4ab9 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -2,8 +2,8 @@ import { MainLayout } from "../layouts/MainLayout";
export default function Home() {
return (
-