Feat/ Add Akash Bits#1287
Open
aktdenis wants to merge 3 commits into
Open
Conversation
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>
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.