diff --git a/README.md b/README.md
index 0d2ed1a..0a5235e 100644
--- a/README.md
+++ b/README.md
@@ -56,9 +56,10 @@ We can follow this convention to call our brand new branches: `post/my-new-post`
```js
---
-title: 'My New Post!'
-description: 'a description of your post...'
-author: 'Rick Sanchez Prime'
+title: 'My New Post!' // required
+description: 'a description of your post...' // required
+author: 'Rick Sanchez Prime' // required
+keywords: ["react", "nextjs", "frontend"] // required, array of strings
pubDate: '04-12-2024 10:00' // MM-DD-YYYY HH:MM
updatedDate: '04-05-2024 12:00' // MM-DD-YYYY HH:MM (optional)
heroImage: 'my-new-post/hero.jpg' // (optional)
diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro
index dc3884a..3fb379d 100644
--- a/src/components/BaseHead.astro
+++ b/src/components/BaseHead.astro
@@ -7,12 +7,27 @@ import "../styles/global.css";
interface Props {
title: string;
description: string;
- image?: string;
+ heroImage?: string;
+ keywords: string[];
+ author: string;
}
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
-const { title, description, image = "/assets/logo.png" } = Astro.props;
+const {
+ title,
+ description,
+ heroImage = "http://www.coders51.com/img/share2.jpg",
+ keywords,
+ author = "Andrea Junior Berselli"
+} = Astro.props;
+
+const buildKeywordsString =
+ keywords === undefined
+ ? ""
+ : `${keywords?.length > 0 ? "," : ""} ${
+ keywords?.length === 0 ? "" : keywords?.join(", ")
+ }`;
---
@@ -37,7 +52,7 @@ const { title, description, image = "/assets/logo.png" } = Astro.props;
@@ -46,11 +61,10 @@ const { title, description, image = "/assets/logo.png" } = Astro.props;
-
+
-
@@ -59,10 +73,10 @@ const { title, description, image = "/assets/logo.png" } = Astro.props;
-
+
-
+
diff --git a/src/components/Header.astro b/src/components/Header.astro
index 4e23f8b..4d6f5ed 100644
--- a/src/components/Header.astro
+++ b/src/components/Header.astro
@@ -7,13 +7,18 @@ import DarkModeToggle from "src/components/DarkModeToggle";
class="fixed h-20 flex w-full items-center justify-center bg-gradientHeader backdrop-blur-xl"
>
-
+
+
+ BLOG
+