CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

Personal academic portfolio for Peeter Laas (PhD, molecular ecology / environmental microbiology), hosted on GitHub Pages at https://peeterlaas.github.io.

Deployment

./update.sh "Add a new talk"   # check assets, commit, push  ← the normal way

No local build step is needed: index.html has no YAML front matter, so Jekyll copies it verbatim, and GitHub Pages serves it on push to main.

update.sh refuses to push if index.html references a local image, video or PDF that is not on disk — both src/href attributes and CSS url(...). That is the failure this site actually has: a broken box on a live portfolio page, noticed by a visitor rather than by you.

Architecture

The site recently migrated from a multi-page Jekyll structure to a single-file SPA. All visible content and client-side navigation logic now lives in index.html. The six sections (Home, Current Work, Past Work, Education, Events & Honours, Gallery) are rendered and switched via vanilla JavaScript — no framework involved.

Theme

index.html is light: warm paper (--bg: #f7f5f0), near-white surfaces, deep teal accent (--accent: #1c6b59), matching the light lecture decks in the MolEcoMeth course repo but with serif display headings rather than the decks’ single grotesque. Every colour is a CSS variable declared once in :root, so a palette change is that one block — do not reintroduce hardcoded hex values in rules or inline styles.

The molecular watermark is body::after: fixed, bottom-right, ~5% opacity. main is lifted to z-index: 1 and the sidebar to 100 so the mark stays behind both.

No Tallinn University logo anywhere — deliberate.

Key Notes