From 27053ad40121adcf08603c7d7c9c3f48af5246f5 Mon Sep 17 00:00:00 2001
From: Yuval Adam <_@yuv.al>
Date: Thu, 12 Jun 2025 22:25:57 +0200
Subject: Initial page works
---
src/pages/blog/[slug].astro | 67 -------------------
src/pages/blog/index.astro | 48 -------------
src/pages/index.astro | 160 +++++++++++++++++++++++++-------------------
3 files changed, 90 insertions(+), 185 deletions(-)
delete mode 100644 src/pages/blog/[slug].astro
delete mode 100644 src/pages/blog/index.astro
(limited to 'src/pages')
diff --git a/src/pages/blog/[slug].astro b/src/pages/blog/[slug].astro
deleted file mode 100644
index f42f5c9..0000000
--- a/src/pages/blog/[slug].astro
+++ /dev/null
@@ -1,67 +0,0 @@
----
-import { getCollection, getEntry } from 'astro:content';
-import StandardLayout from '../../layouts/StandardLayout.astro';
-
-// Define the props type
-export async function getStaticPaths() {
- const blogEntries = await getCollection('blog');
- return blogEntries.map(entry => ({
- params: { slug: entry.slug },
- props: { entry },
- }));
-}
-
-// Get the blog post data
-const { entry } = Astro.props;
-const { Content } = await entry.render();
-
-// Format the publication date
-const formattedDate = new Date(entry.data.pubDate).toLocaleDateString('en-US', {
- year: 'numeric',
- month: 'long',
- day: 'numeric'
-});
----
-
-
- {new Date(post.data.pubDate).toLocaleDateString('en-US', {
- year: 'numeric',
- month: 'long',
- day: 'numeric'
- })}
- {post.data.description} Read more → No blog posts found. Check back soon!
- A modern framework for building fast, content-focused websites.
- An exclusive club of geeks that serve their personal homepage from the domain hack to their name. Are you
+ one of us? Join the club by opening a pull
+ request on Github or send us an
+ email at join@namehack.club.
- {new Date(
- post.data.pubDate,
- ).toLocaleDateString("en-US", {
- year: "numeric",
- month: "long",
- day: "numeric",
- })}
-
- {post.data.description}
-
- )}
-
-
{entry.data.title}
-
- Blog
-
-
- )}
-
{post.data.title}
-
- Welcome to Astro
-
- Doma.in Na.me
+ Ha.ck Cl.ub
+
- Latest Blog Posts
-
- View all posts →
- 💎 Members
+
+ {members.map((name) => {
+ const nameParts = name.data.name.toLowerCase().split(" ");
+ const domain = name.data.domain.replace(".", "");
+ const url = name.data.url || `https://${name.data.domain}`;
+
+ return (
+
-
+
⭐ Candidates
+
+ {candidates.map((name) => {
+ const nameParts = name.data.name.toLowerCase().split(" ");
+ const domain = name.data.domain.replace(".", "");
+ const url = name.data.url || `https://${name.data.domain}`;
+
+ return (
+
-
- {post.data.title}
-
-