CLAUDE.md
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Overview
Personal academic website for Thore Petersen (PhD candidate, IIES Stockholm University). Built with Jekyll and hosted on GitHub Pages at thorepet.github.io.
Build Commands
# Install dependencies (use Ruby 3.3)
PATH="/opt/homebrew/opt/ruby@3.3/bin:$PATH" bundle install
# Serve locally (available at http://127.0.0.1:4000)
PATH="/opt/homebrew/opt/ruby@3.3/bin:$PATH" bundle exec jekyll serve
# Clean generated content (_site directory)
PATH="/opt/homebrew/opt/ruby@3.3/bin:$PATH" bundle exec jekyll clean
Ruby 3.3 is installed via Homebrew (brew install ruby@3.3).
Architecture
- Jekyll site using the
github-pagesgem with a custom remote theme:thorepet/minima - No layouts or templates locally — all theming comes from the remote minima fork
_includes/google-analytics.html— only local override, for Google Analytics tracking- Content pages are Markdown files with YAML front matter at the root:
index.md(home/CV/papers),teaching.md,other.md - Navigation is configured in
_config.ymlunderminima.nav_pages(currently: teaching, other) - Static assets live in
assets/: PDFs (CV, JMP), profile photo, teaching materials (assets/teaching/), and custom CSS (assets/css/) notes.mdis a personal reference file (not in nav), documenting site setup decisions
Content Conventions
- Images are embedded as inline HTML
<img>tags with inline styles (not Markdown image syntax) - Paper abstracts use HTML
<details>/<summary>elements for collapsible sections - Links to PDFs and teaching materials use absolute paths from site root (e.g.,
/assets/tpetersen_jmp.pdf)