Skip to content

refactor: one folder per post for content and assets - #35

Merged
37ng merged 1 commit into
mainfrom
claude/bitcoin-folder-reorg-6be66b
Sep 8, 2026
Merged

37ng merged 1 commit into
mainfrom
claude/bitcoin-folder-reorg-6be66b

Conversation

@37ng

@37ng 37ng commented Sep 8, 2026 •

Copy link
Copy Markdown
Owner

cc t

Everything a post owns now lives under its own name: src/assets/<slug>/
for binaries and src/content/posts/<slug>/ for index.mdx plus that post's
data files. Bitcoin's bars, epochs, off-chain revenue and the two new
ms-by-month / ms-by-pool tables move out of src/lib/, which keeps only
logic and site-wide modules.

URLs are unchanged: the glob loader strips a trailing /index from the id,
so posts/bitcoin/index.mdx still serves /bitcoin, and its `**/*.mdx`
pattern means the JSON beside the prose is never read as an entry.

npm run art now mirrors subfolders, so a master at art-src/bitcoin/bg.png
writes src/assets/bitcoin/bg.webp and the one-folder-per-post rule holds
for art too.

Also fixes .prettierignore, which pointed at src/content/blog/*.mdx — a
directory that no longer exists.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@37ng
37ng merged commit 9a88033 into main Sep 8, 2026
1 check passed
@37ng
37ng deleted the claude/bitcoin-folder-reorg-6be66b branch September 8, 2026 16:38
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.

1 participant