This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a personal blog built with Jekyll and hosted on GitHub Pages (https://wangyubo.github.io). The blog contains personal essays, reading notes, and thoughts on culture, literature, philosophy, and technology, primarily in Chinese.
Site Name: 钰博的博客 Author: 王钰博 (Wang Yubo) URL: http://muguangling.com Technologies: Jekyll, Liquid templating, GitHub Pages
This is a standard Jekyll static site generator structure:
/
├── _config.yml # Jekyll configuration and site settings
├── _posts/ # Blog posts in Markdown (95+ articles from 2016-2026)
├── _layouts/ # HTML templates (default, post, page, keynote)
├── _includes/ # Reusable HTML components (nav, footer, head)
├── css/ # Stylesheets
├── js/ # JavaScript files
├── img/ # Images and header images
├── fonts/ # Web fonts
├── index.html # Home page (paginated post list)
├── about.html # About page
├── tags.html # Tag archive page
├── 404.html # Error page
├── feed.xml # RSS feed
├── sw.js # Service worker for PWA
└── pwa/ # Progressive Web App assets
# Preview the site locally
jekyll serve
# Preview with auto-rebuild on changes
jekyll serve -w
# Preview with drafts
jekyll serve --drafts
# Build the site (output to _site/)
jekyll build
# Preview built site with Python 3
npm run py3view
# Watch and rebuild + preview
npm run py3wa
# Git push to origin master with tags
npm run push
# Watch for changes and rebuild assets
grunt watch
Posts live in _posts/ and follow strict naming conventions:
Filename Format: YYYY-MM-DD-title-in-english.md
Required Front Matter:
---
layout: post
title: 文章标题
subtitle: 副标题(可选)
date: YYYY-MM-DD
author: 钰博
header-img: img/image-name.jpg
catalog: true
tags:
- 标签1
- 标签2
---
Content:
## (since # is the post title)Example:
---
layout: post
title: 让世界去卷,我们来读诗
date: 2026-01-22
author: 钰博
header-img: img/190211_snow_3.jpg
catalog: true
tags:
- 诗歌
---
## 第一部分标题
文章内容...
Key settings to be aware of:
/2024/01/22/post-title/)Important: After changing _config.yml, you must restart jekyll serve.
Four main layouts in _layouts/:
All layouts use Liquid templating and include files from _includes/.
img/ (e.g., img/190211_snow_3.jpg)img/mgl.jpg or full URLfonts/GitHub Pages automatically builds and deploys when you push to the master branch.
No manual build step required - just commit and push:
git add .
git commit -m "commit message"
git push origin master
The site will rebuild automatically within 1-2 minutes.
_posts/YYYY-MM-DD-title.md with proper front matterimg/ if neededjekyll serve_config.yml_includes/nav.html_layouts/ and _includes/_site/ directory is excluded (in .gitignore)_config.yml syntax (YAML is whitespace-sensitive)YYYY-MM-DD-name.md format---layout: post_posts/ directory/img/filename.jpg (absolute path from site root)img/ directory_config.yml baseurl setting