Skip to content

Feat/ Add Akash Bits#1287

Open
aktdenis wants to merge 3 commits into
akash-network:mainfrom
aktdenis:feat/bits-blog
Open

Feat/ Add Akash Bits#1287
aktdenis wants to merge 3 commits into
akash-network:mainfrom
aktdenis:feat/bits-blog

Conversation

@aktdenis

Copy link
Copy Markdown
Collaborator

Introduces Akash Bits — a new short-form blog section at akash.network/bits, built alongside the existing blog without touching any of its code.

What's new
Routes

/bits — listing page with tag filters and search
/bits/[slug] — post detail page
/bits/[tag]/[page] — tag-filtered listing
Key design decisions vs. the main blog

No large featured post at the top — grid layout from the first post
Tag-based filtering (not categories)
Active filter chip uses a neutral white/filled style (shadcn), not red
Prose uses shadcn-aligned typography: text-base leading-7 body, font-semibold tracking-tight headings, foreground-colored underline links (not red)
Back to Akash Bits breadcrumb on every post detail page
New files

src/content/Bits/ — content collection with its own schema (author, tags, optional bannerImage)
src/pages/bits/ — all route pages
src/layouts/bits-layout.astro — post layout with related posts footer and CTA
src/components/blog/bits-search-dialog.tsx — Fuse.js search fetching /api/search/bits.json
src/components/ui/bits-tag.astro — filter chip with shadcn active state
src/pages/api/search/bits.json.ts — search data endpoint
src/lib/prose-classes.ts — added bitsProseClasses export (existing proseClasses untouched)
First post included

Does Enterprise AI Leak Your Company Data? The Reverse Information Paradox Explained — by Joe, Community Manager (Jul 22, 2026), with optimized banner (WebP, 405KB)
What was not changed
The existing /blog routes, components, and collection are untouched. Bits is fully self-contained.

@aktdenis
aktdenis requested a review from HoomanDgtl July 23, 2026 09:45
@HoomanDgtl

Copy link
Copy Markdown
Contributor

@aktdenis could you please resolve some merge conflicts..

New short-form blog section with shadcn-aligned prose styles,
tag filtering, Fuse.js search, and individual post layout.

- Content collection schema (Bits) in config.ts
- Index page at /bits with tag filters and search (no featured post)
- Tag filter pages at /bits/[tag]/[page]
- Post detail page at /bits/[slug] with back button, sidebar, share
- bits-layout.astro with related posts footer and CTA
- bits-search-dialog.tsx fetching /api/search/bits.json
- bits-tag.astro with neutral active state (no red)
- bitsProseClasses: text-base/leading-7 body, semibold headings
- First post: Reverse Information Paradox (banner.webp included)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
aktdenis and others added 2 commits July 24, 2026 15:58
- Add loader: contentLoader("Bits") to the Bits collection — without
  it Astro 6 Content Layer API cannot find any entries
- Replace post.slug with post.id across all Bits pages and search API
  (slug no longer exists in the Content Layer API)
- Update post.render() to render(post) in [slug].astro (Astro 6 API)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…eFunction import

- Fix height={1200} → height={675} on card images so they match the
  aspect-video (16:9) container instead of zooming/cropping
- Remove PaginateFunction import from "astro" (dropped in Astro 6)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants