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:
    • title
    • date
    • summary
  • 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() in lib/markdown.ts
  • Each post is pulled into the /v2/blog page dynamically
  • Display includes:
    • Title
    • Summary
    • Link to full post (/v2/blog/[slug])

Git Workflow

  • Learned how to:
    • git add, commit, and push changes 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 .md file and you're live.

How I’ll Add Posts from Now On

  • Drop a new .md file 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!