CLAUDE.md

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

Project Overview

Static website for Waikereru (www.waikereru.org) — an ecological sanctuary near Gisborne, New Zealand, run by the Longbush Ecological Trust. Built with Jekyll using the Minimal Mistakes theme, hosted on GitHub Pages.

Commands

# Install Ruby dependencies and serve locally
bundle install
bundle exec jekyll serve

# Build the site to _site/
bundle exec jekyll build

# Rebuild the minified JS (after editing assets/js/_main.js)
npm run build:js

There are no lint or test scripts.

Architecture

Content Types

Jekyll Configuration (_config.yml)

Custom Includes

</figure> ` — embeds images with optional captions (use this, NOT Markdown ![]())

` — responsive video embed

Sass/CSS

The custom Waikereru skin is at _sass/minimal-mistakes/skins/_waikereru.scss. Override theme styles there. The entry point is assets/css/main.scss.

JavaScript

Custom JS is in assets/js/_main.js. After editing, run npm run build:js to minify into assets/js/main.min.js. jQuery 3.3.1 and several plugins (FitVids, GreedyNav, Magnific Popup, Smooth Scroll) are bundled.

Creating a New Blog Post

  1. Create _posts/YYYY-MM-DD-slug.md with this front matter:
---
title: "Post Title"
layout: single
classes: wide
header:
  teaser: /assets/images/news/teaser-image.jpg
categories:
  - News
---
  1. Use `

    <img src=

    “/assets/images/news/image.jpg”

    alt=””>

</figure> ` for all inline images

  1. Copy images to assets/images/news/

Email-to-Post Skill

A Claude Code skill at .claude/skills/process-email/ can parse .eml files into new blog posts. Triggered by /process-email, it extracts subject/date/body/images, saves images to assets/images/news/, and writes the post to _posts/.

Key File Locations

Purpose Path
Config _config.yml
Posts _posts/
Pages _pages/
Navigation _data/navigation.yml
UI text _data/ui-text.yml
Custom skin _sass/minimal-mistakes/skins/_waikereru.scss
Custom JS assets/js/_main.js
Post images assets/images/news/
Documents (PDFs) assets/documents/