feat(website): Blog infrastructure with markdown-to-HTML build#70
Closed
feat(website): Blog infrastructure with markdown-to-HTML build#70
Conversation
Add a lightweight blog system that converts markdown posts to styled HTML matching the site's dark theme. No frameworks added, just a build script. New files: - scripts/build-blog.js: Converts md posts to HTML using marked + gray-matter - website/blog-src/posts/: Markdown source directory for blog posts - website/blog/blog.css: Blog-specific styles (nav, prose, index listing) - website/blog/: Generated HTML output directory Changes: - package.json: Add build:blog script + marked devDependency - .github/workflows/pages.yml: Run build:blog before GitHub Pages deploy First post: Building Brain migrated from docs/blog/ with frontmatter. Workflow: write md in blog-src/posts/ -> npm run build:blog -> push Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
014b123 to
b971fdf
Compare
Owner
Author
|
Superseded by Zine website PR #71 which includes blog infrastructure |
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.
Summary
Add a lightweight blog system that converts markdown posts to styled HTML matching the site's dark theme. No frameworks — just a 168-line build script using \marked\ + \gray-matter.
What's included
pm run build:blog\ before GitHub Pages deploy
How it works
\\�ash
Write a blog post
vim website/blog-src/posts/my-post.md
Build HTML
npm run build:blog
Push (GitHub Pages auto-deploys)
git push
\\
Output structure
\
website/blog/
├── index.html # Blog listing page
├── blog.css # Blog styles
└── building-brain/
└── index.html # Individual post (clean URL)
\\
Design decisions