This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a personal blog site built with Hexo, a fast static site generator. The blog is titled "拾知|Pick-Knowledge" and uses the Fluid theme.
npm run serverorhexo server- Start local development server (default: http://localhost:4000)npm run buildorhexo generate- Generate static files topublic/directorynpm run cleanorhexo clean- Clean generated files and cache
hexo new post <title>- Create a new blog post insource/_posts/hexo new page <name>- Create a new pagehexo new draft <title>- Create a draft post
npm run deployorhexo deploy- Deploy the site (requires configured deployment in_config.yml)
source/- Source content directory_posts/- Blog posts (Markdown files)about/- About page content
scaffolds/- Post templates (default template:post.md)scripts/- Custom Hexo scriptslive2d.js- Injects Live2D widget script
public/- Generated static files (created byhexo generate)_config.yml- Main Hexo configuration_config.fluid.yml- Fluid theme configurationpackage.json- Dependencies and npm scripts
_config.yml- Main Hexo config (URL, directories, writing settings, theme selection)_config.fluid.yml- Theme-specific settings (navigation, appearance, about page, etc.)
The site uses post_asset_folder: true, meaning each post can have its own asset folder. When creating a post titled "My Post", a folder source/_posts/My Post/ will be created alongside source/_posts/My Post.md for images and other assets.
Posts use the following front matter format (defined in scaffolds/post.md):
---
title: {{ title }}
date: {{ date }}
tags:
---Hexo scripts in the scripts/ directory extend functionality. The live2d.js script uses hexo.extend.injector to inject the Live2D widget script into the head_begin section.
The site uses the Fluid theme (hexo-theme-fluid), configured via _config.fluid.yml. Theme features include:
- Navigation menu with icons
- Dark mode support (set to auto)
- Statistics (PV/UV via busuanzi)
- Typewriter slogan effect with Hitokoto API
- About page with avatar and banner
- Language:
zh-CN(Chinese) - Timezone:
Asia/Shanghai - Date format:
YYYY-MM-DD - Permalink structure:
:year/:month/:day/:title/