diff --git a/src/components/Author.astro b/src/components/Author.astro new file mode 100644 index 0000000..8c8202c --- /dev/null +++ b/src/components/Author.astro @@ -0,0 +1,18 @@ +--- +import { Image } from "astro:assets"; +const avatar = "/avatar.jpg"; +const username = "anotherhadi" +const bio = "Infosec engineer." + +--- +
+
+ anotherhadi avatar +
+
+

@{username}

+

{bio}

+
+
diff --git a/src/layouts/BlogLayout.astro b/src/layouts/BlogLayout.astro index f88df91..3781d1a 100644 --- a/src/layouts/BlogLayout.astro +++ b/src/layouts/BlogLayout.astro @@ -5,6 +5,7 @@ import TagBadge from "../components/TagBadge.astro"; import BackToTop from "../components/BackToTop.astro"; import { ChevronLeft } from "@lucide/astro"; import { parse } from "node-html-parser"; +import Author from "../components/Author.astro"; interface Props { title: string; @@ -54,17 +55,17 @@ const toc = headers.map((header) => ({ { - image && ( -
- {title} -
- ) + image && ( +
+ {title} +
+ ) } @@ -73,7 +74,7 @@ const toc = headers.map((header) => ({

{description}

{ - tags && tags.length > 0 && ( -
- {tags.map((tag) => ( - - ))} -
- ) + tags && tags.length > 0 && ( +
+ {tags.map((tag) => ( + + ))} +
+ ) } + + @@ -170,7 +173,7 @@ const toc = headers.map((header) => ({ Contact me - Support me + Support me