Railhead is the theme behind jeffcamacho.com: a personal site, portfolio, and blog built with Astro. Writing, projects, work history, and credentials all live in Markdown and MDX content collections, and the whole site builds to static files.
- Home: a transit-style career line built from the Work collection, latest writing, a topic list, recent projects, credentials, and contact links
- Blog: posts grouped by year and month, with an archive sidebar and a topic filter
- Posts and projects: a table of contents sidebar and Giscus comments, with links to the newer and older post at the end of each blog post
- Topics: a page for every tag, plus a topic directory at
/tags - Projects: grouped by status (To Do, Doing, Done, OBE, Backlog) with a status filter
- Work: a timeline of work, entrepreneurial, and volunteer experience
- Education: degrees, certifications, and certificates, with expired certifications labeled
- Pagefind search, opened from the header, the
/key, or Ctrl+K - Light, dark, and system themes
- RSS feed at
/rss.xmland an automatic sitemap - Canonical URLs plus Open Graph and Twitter card meta tags
- Client-side page transitions with Astro's
ClientRouter - Image lightbox on posts and projects
- Mermaid diagrams rendered to SVG at build time
- Copy buttons on code blocks
MDX posts can embed the components in src/components, including roadmap timelines and boards, WSJF calculators, an LPM portfolio board, Chart.js charts, galleries, and slide decks. Data for several of them lives in src/data.
- Astro 7, with MDX, React, and sitemap integrations
- Tailwind CSS 4 with the typography plugin
- Pagefind for static search
- rehype-mermaid with Playwright Chromium for diagrams
- Shiki syntax highlighting using the
css-variablestheme - Fonts: Archivo (headings and interface), Source Serif 4 (reading text), Geist Mono (code)
Astro 7 requires Node.js 22.23.4 or newer.
- Clone the repository
git clone https://github.com/jeff-mos-def/jeffcamacho-micro.git
cd jeffcamacho-micro- Install dependencies, plus the Chromium build that Mermaid rendering needs
npm install
npx playwright install chromium- Start the development server
npm run dev- Build for production (type check, Astro build, then the Pagefind index)
npm run build- Preview the production build
npm run previewnpm run dev serves search from public/pagefind. To search your real content locally, build once and write the index there:
npm run build
npx pagefind --site dist --output-path public/pagefindRun it again whenever you want search to catch up. public/pagefind/ is generated, so keep it out of git.
src/
βββ components/ UI and MDX components
βββ content/
β βββ blog/ one folder per post (index.md or index.mdx)
β βββ projects/ one folder per project
β βββ work/ one file per role
β βββ education/ one file per degree, certification, or certificate
βββ data/ JSON used by interactive components
βββ layouts/ page layout
βββ lib/tags.ts the blog's tag taxonomy
βββ pages/ routes
βββ styles/global.css colors, type, and prose styles
βββ consts.ts site settings and social links
βββ content.config.ts content collection schemas
public/img/ images referenced by posts and projects
wrangler.jsonc Cloudflare Workers deployment
netlify.toml Netlify build settings
src/consts.ts: site title, description, email, how many posts and projects show on the home page, page titles, and social linkssrc/content.config.ts: front matter schemas for every collectionsrc/lib/tags.ts: the allowed blog tags, with their labels and descriptionssrc/styles/global.css: light and dark color tokens, fonts, and prose stylingastro.config.mjs: site URL, integrations, and the Markdown pipeline
Blog tags come from a fixed list in src/lib/tags.ts. The content schema only accepts those slugs, so a typo or an unlisted tag fails the build instead of creating a new tag page. To add a topic, add it to that list first.
| Slug | Label |
|---|---|
project-management |
Project Management |
agile |
Agile & SAFe |
product |
Product & Discovery |
systems |
Systems & Process |
career |
Career & Leadership |
pmp |
PMP Journey |
builds |
Builds & Gear |
site-updates |
Site Updates |
community |
Veterans & Community |
personal |
Personal |
src/content/blog/<folder>/index.md or index.mdx
---
title: "Your Post Title"
description: "Post description"
date: "YYYY-MM-DD"
tags: ["project-management", "agile"]
linkedProject: "/projects/project-slug" # optional
projectBoard: "https://github.com/..." # optional
draft: false # optional
---src/content/projects/<folder>/index.md or index.mdx
---
title: "Project Title"
description: "Project description"
date: "YYYY-MM-DD" # optional
startDate: "YYYY-MM-DD"
endDate: "YYYY-MM-DD" # optional, or "TBD"
status: "Doing" # To Do, Doing, Done, OBE, or Backlog
demoURL: "https://demo-url" # optional
repoURL: "https://repo-url" # optional
draft: false # optional
---src/content/work/<name>.md
---
company: "Company Name"
role: "Role Title"
dateStart: YYYY-MM-DD
dateEnd: YYYY-MM-DD # or Current
type: work # work, entrepreneurial, or volunteer
---src/content/education/<name>.md
---
institution: "Institution Name"
degree: "Degree or Certification Name"
field: "Field"
type: "certification" # education, certification, or certificate
dateStart: YYYY # optional
dateEnd: YYYY # optional, or "Current"
priority: 1 # optional, sort order for certifications
gpa: 4.0 # optional
expired: true # optional, labels it on the Education page and hides it from the home page
---wrangler.jsonc deploys the built dist folder as static assets under the Worker name railhead, and serves 404.html for missing pages. The Worker name in the Cloudflare dashboard has to match the name in wrangler.jsonc.
- Build command:
npx playwright install chromium && npm run build - Deploy command:
npx wrangler deploy
netlify.toml holds the Netlify build command, publish folder, and Node version.
MIT. See LICENSE.
- My patience for sweating through this.