This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a personal Jekyll blog (zwyhahaha.github.io) for Wanyu Zhang — an academic/research blog covering optimization, machine learning, and travel. It is deployed via GitHub Pages.
Local preview (requires Jekyll installed):
jekyll serve
Compile LESS to CSS (requires npm dependencies):
grunt # compile JS and LESS, add banners
grunt watch # watch for changes
Python-based static preview of built site:
cd _site; python3 -m http.server 8020
_posts/ — Published blog posts (Markdown). Naming: YYYY-MM-DD-title.md_drafts/ — Unpublished drafts (no date prefix needed)_layouts/ — Page templates: default.html (base), post.html (blog posts), page.html, keynote.html_includes/ — Reusable partials: head.html, nav.html, footer.htmlimg/ — Images organized by post/topic in subdirectoriesless/ — LESS source files compiled to css/_config.yml — Site-wide configuration (title, social links, plugins, MathJax settings)Every post requires this front matter:
---
layout: post
title: "Post Title"
subtitle: "Optional subtitle"
date: YYYY-MM-DD
author: Wanyu Zhang
header-img: img/some-image.jpeg
catalog: true # enables sidebar table of contents
tags:
- TagName
---
Set catalog: false for posts without a table of contents (e.g., travel/photo posts).
Posts use MathJax 3 (loaded in post.html). Use standard LaTeX syntax:
$...$ or \(...\)$$...$$ or \[...\]bm package is available for bold math (\bm{})Reference images relative to site root:
<img src="/img/subfolder/image.jpeg" alt="description" style="width: 90%; height: auto;">
Store images in img/<post-topic>/ subdirectories.
featured-condition-size: 2 in _config.yml)gitalk.enable: false)service-worker: true)