Gemini Context: The Magic of Programming (Technical Blog)
Project Overview
This is a Jekyll-based technical blog (GitHub Pages) owned by Wenliang ZHANG (张文亮). It focuses on computer science, database systems, and software engineering.
Key Directories
_posts/: Markdown files for blog posts._layouts/: Liquid templates for site structure (default,page,post,tagpage)._includes/: Reusable HTML fragments (analytics, comments, tags, etc.).tag/: Automatically generated tag pages.images/: Static images used in posts.files/: PDF documents and other downloadable assets.
Post Creation Guidelines
- File Naming:
_posts/YYYY-MM-DD-TITLE.md(e.g.,2026-03-12-HELLO-WORLD.md). - Front Matter: Must include
layout: post,title, andtags.- Example:
--- layout: post title: "My New Post" tags: [database, sql] ---
- Example:
- Tag Generation: After adding or updating a post with new tags, run
./tag_generator.pyto update thetag/directory.
Technical Standards
- Markdown: Kramdown (GitHub Flavored Markdown).
- Syntax Highlighting: Rouge (configured in
_config.yml). - Styling: Sass (partials in
_sass/, main entry instyle.scss). - Icons: SVG icons managed in
_includes/svg-icons.htmland_sass/_svg-icons.scss.
Workflows
- Adding a Post:
- Create a new
.mdfile in_posts/following the naming convention. - Add required front matter and content.
- Run
./tag_generator.pyto refresh the tag pages. - (Optional) Preview locally using
bundle exec jekyll serveorjekyll serve. - Commit and push to GitHub.
- Create a new