Rename poetry site to pieces
Some checks are pending
Build / build (push) Waiting to run

This commit is contained in:
Neeldhara Misra 2026-06-25 16:19:48 +05:30
parent 7aa1fd2372
commit 164f4a0f3c
22 changed files with 39 additions and 57 deletions

View file

@ -28,7 +28,7 @@ server {
server {
listen 80;
server_name poetry.neeldhara.blog poetry.neeldhara.email;
server_name pieces.neeldhara.blog pieces.neeldhara.email;
root /usr/share/nginx/html;
include /etc/nginx/snippets/blog-locations.conf;
}

View file

@ -28,9 +28,9 @@ export const BLOG_SITES = [
},
{
key: "poetry",
title: "Poetry",
description: "Failed attempts at organizing thoughts in verse.",
url: "https://poetry.neeldhara.blog",
title: "Pieces",
description: "Poems, short prose, and small experiments in language.",
url: "https://pieces.neeldhara.blog",
},
{
key: "reviews",

View file

@ -1,15 +1,6 @@
import { format } from "date-fns";
import { typographicText } from "@/lib/typography";
const getReadingTime = (body: string | undefined) => {
const words = (body ?? "")
.replace(/```[\s\S]*?```/g, " ")
.replace(/<[^>]+>/g, " ")
.match(/\b[\w'-]+\b/g);
return Math.max(1, Math.ceil((words?.length ?? 0) / 220));
};
const BlogPost = ({
post,
children,
@ -19,7 +10,6 @@ const BlogPost = ({
}) => {
const { title, pubDate } = post.data;
const displayTitle = typographicText(title);
const readingTime = getReadingTime(post.body);
return (
<section className="container px-6 py-2 md:py-6">
@ -29,7 +19,6 @@ const BlogPost = ({
<time dateTime={pubDate.toISOString()}>
{format(pubDate, "MMMM d, yyyy")}
</time>
<span>{readingTime} min read</span>
</div>
<div className="poetry-post-body">{children}</div>
</article>

View file

@ -3,7 +3,7 @@ import { ArrowRight } from "lucide-react";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Badge } from "@/components/ui/badge";
import { Separator } from "@/components/ui/separator";
import { Calendar, Clock, User } from "lucide-react";
import { Calendar } from "lucide-react";
import { typographicText } from "@/lib/typography";
import { PlusSigns } from "../icons/plus-signs";
@ -103,9 +103,6 @@ const BlogPosts = ({
},
)}
</div>
<div className="text-muted-foreground flex items-center text-sm">
<Clock className="mr-1 h-4 w-4" />5 min read
</div>
</div>
</div>
</div>
@ -151,10 +148,6 @@ const BlogPosts = ({
)}
</span>
</div>
<div className="flex items-center gap-1">
<Clock className="h-3.5 w-3.5" />
<span>5 min read</span>
</div>
</div>
</div>
</a>