diff --git a/src/components/Blog.astro b/src/components/Blog.astro index aede4c8..e6e9fef 100644 --- a/src/components/Blog.astro +++ b/src/components/Blog.astro @@ -18,14 +18,19 @@ const latestPosts = sortedPosts.slice(0, 3);

Latest Blog Posts

-

- Thoughts, insights, and tutorials on cybersecurity, OSINT, and - technology. -

- {latestPosts.map((post) => )} + { + latestPosts.map((post) => ( + + )) + }
diff --git a/src/components/BlogCard.astro b/src/components/BlogCard.astro index 46a1ef4..85276de 100644 --- a/src/components/BlogCard.astro +++ b/src/components/BlogCard.astro @@ -5,6 +5,9 @@ import { Image } from "astro:assets"; import { formatDate } from "../utils/notes"; interface Props { + displayBanner: boolean; + displayDate: boolean; + displayTags: boolean; post: CollectionEntry<"blog">; } @@ -14,6 +17,8 @@ const { post } = Astro.props;
+ + { Astro.props.displayBanner && (
+)}
+ { Astro.props.displayDate && ( +)}

{post.data.title}

{post.data.description}

- { - post.data.tags && post.data.tags.length > 0 && ( + + { Astro.props.displayTags && post.data.tags && post.data.tags.length > 0 && (
{post.data.tags.map((tag) => ( ))}
- ) - } +)} diff --git a/src/components/GiteaProjectCard.astro b/src/components/GiteaProjectCard.astro index 983c249..e4702cd 100644 --- a/src/components/GiteaProjectCard.astro +++ b/src/components/GiteaProjectCard.astro @@ -2,6 +2,7 @@ import { ExternalLink, ChevronDown } from "@lucide/astro"; interface Props { + displayBanner: boolean; repo: { name: string; description: string; @@ -34,6 +35,7 @@ const hasMultiplePlatforms = platforms.length > 1;
+ { Astro.props.displayBanner && repo.banner_url && (
1; onerror="this.parentElement.style.display='none'" />
+)}

@@ -83,7 +86,7 @@ const hasMultiplePlatforms = platforms.length > 1;
View Source @@ -107,7 +110,7 @@ const hasMultiplePlatforms = platforms.length > 1; href={repo.html_url} target="_blank" rel="noopener noreferrer" - class="btn btn-primary btn-sm gap-1" + class="btn btn-soft btn-primary btn-sm gap-1" > View on Gitea diff --git a/src/components/Hero.astro b/src/components/Hero.astro index bf4f1ad..5d913a0 100644 --- a/src/components/Hero.astro +++ b/src/components/Hero.astro @@ -38,7 +38,7 @@ const { Hi, I'm {name}

{title}

-

+

{description}

{ diff --git a/src/components/Notes.astro b/src/components/Notes.astro index 5d3bd90..c1fecb8 100644 --- a/src/components/Notes.astro +++ b/src/components/Notes.astro @@ -4,8 +4,8 @@ import { ArrowRight } from "@lucide/astro";
-
-

Infosec notes

+
+

Infosec Notes

@@ -13,15 +13,13 @@ import { ArrowRight } from "@lucide/astro"; Cheatsheets and references on tools and techniques I use for CTFs and pentesting.

- - Browse notes - - + +
diff --git a/src/components/Projects.astro b/src/components/Projects.astro index 5c04c6a..3a7bc5b 100644 --- a/src/components/Projects.astro +++ b/src/components/Projects.astro @@ -10,14 +10,14 @@ const latestRepos = repos.slice(0, 3);

Check out my latest work

-

- I enjoy the challenge of reimagining existing programs & scripts in my - own unique way. -

-
- {latestRepos.map((repo) => )} +
+ { + latestRepos.map((repo) => ( + + )) + }
diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index c2f1e77..36af87f 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -45,7 +45,12 @@ const sortedPosts = blogPosts.sort( ) : (
{sortedPosts.map((post) => ( - + ))}
) diff --git a/src/pages/projects/index.astro b/src/pages/projects/index.astro index 83038de..636eda3 100644 --- a/src/pages/projects/index.astro +++ b/src/pages/projects/index.astro @@ -36,7 +36,7 @@ import repos from "../../data/repos.json"; ) : (
{repos.map((repo) => ( - + ))}
)