Devlog: Markdown Blog System, Sorting, and Git Workflow
2025-06-04
Today was a productive step forward in building out the blog system on my portfolio site. Here’s a summary of what got done:
Blog System Enhancements
- Migrated blog posts to Markdown files inside
/content/blog/ - Each post uses frontmatter for:
titledatesummary
- Converted previous JSX blog posts into Markdown format with full styling support.
Sorting and Display Logic
- Posts are now automatically sorted by date (newest first) using
getAllPosts()inlib/markdown.ts - Each post is pulled into the
/v2/blogpage dynamically - Display includes:
- Title
- Summary
- Link to full post (
/v2/blog/[slug])
Git Workflow
- Learned how to:
git add,commit, andpushchanges to GitHub via VS Code- Confirm a push using
git log --oneline
- Blog updates now follow a Git-based publishing workflow — just push a new
.mdfile and you're live.
How I’ll Add Posts from Now On
- Drop a new
.mdfile in/content/blog/ - Use the frontmatter format
- Push to GitHub
- That’s it — it shows up on the site automatically
Looking forward to adding more features like images, tags, and custom layouts — but this is a super solid base!