diff --git a/package.json b/package.json
index 3d5bb43..59061ad 100644
--- a/package.json
+++ b/package.json
@@ -13,6 +13,7 @@
"@tailwindcss/vite": "^4.0.13",
"astro": "^5.4.3",
"ava": "^6.2.0",
+ "clsx": "^2.1.1",
"luxon": "^3.5.0",
"tailwindcss": "^4.0.13"
},
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 9b8d661..28528e6 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -17,6 +17,9 @@ importers:
ava:
specifier: ^6.2.0
version: 6.2.0(rollup@4.35.0)
+ clsx:
+ specifier: ^2.1.1
+ version: 2.1.1
luxon:
specifier: ^3.5.0
version: 3.5.0
diff --git a/src/components/ui/Header.astro b/src/components/ui/Header.astro
index 17b3633..4f2508a 100644
--- a/src/components/ui/Header.astro
+++ b/src/components/ui/Header.astro
@@ -1,34 +1,31 @@
---
import Navigation from "./Navigation.astro";
import conf from "~/site.config";
+import { isBlog } from "~/lib/metadata";
let headertext = conf.siteName;
let headerurl = "/";
let headerarrow = false;
-function isBlog() {
- return Astro.url.pathname.startsWith("/blog");
-}
-
-if (isBlog()) {
- headertext = "Everything And The Girl";
- headerurl = "/blog";
- headerarrow = true;
+if (isBlog(Astro.url.pathname)) {
+ headertext = "Everything And The Girl";
+ headerurl = "/blog";
+ headerarrow = true;
}
---
- {
- headerarrow && (
-
-
-
-
-
- )
- }
- {headertext}
-
-
+ {
+ headerarrow && (
+
+
+
+
+
+ )
+ }
+ {headertext}
+
+
This view port may be too small.
Try ivyneeds.rest on a bigger screen.
-This view port may be too small.
+Try ivyneeds.rest on a bigger screen.
+- This is a /now page and + This is a /now page and you should make one, too.
+{latestPost.data.description}
+nae now
+ ) + } +