Content guide
Content guide
Your profile
- Replace
assets/images/profile-placeholder.svgwith a photo of yourself, keeping the same filename, or updateauthor.avatarin_config.yml. - Replace every
Your Name, placeholder email, institution, username, and biography in_config.ymlandindex.md. - Add a CV link to
author.linksin_config.ymlwhen your PDF or CV page is ready. - Edit
_data/publications.yml,_data/projects.yml, and_data/friends.yml. These files power the homepage and friend-links page.
Blog structure
The Blog page at /blog/ is both an index of latest notes and a directory of sub-blogs. A sub-blog is a Jekyll category with its own address:
_posts/ # Every public blog post lives here
_pages/blog.md # Main /blog/ landing page
_pages/blog/research.md # /blog/research/ category archive
_pages/blog/reading.md # /blog/reading/ category archive
_pages/blog/building.md # /blog/building/ category archive
_data/blog_topics.yml # Topic cards on the Blog landing page
_includes/blog-category.html # Shared template for each category archive
The provided Research, Reading, and Building sub-blogs are ready to use. Their pages always list the matching public posts newest first.
Publish a blog post
Save each public post in _posts/ with this filename pattern:
YYYY-MM-DD-short-title.md
For example, _posts/2026-08-12-reproducible-experiments.md becomes /blog/reproducible-experiments/.
Start the file with YAML front matter, then write normal Markdown below it:
---
title: "Reproducible Experiments"
date: 2026-08-12 09:00:00 +0800
excerpt: "A concise one-sentence summary used on the Blog landing page."
categories:
- research
tags:
- methods
- reproducibility
published: true
---
title, date, and excerpt control the visible blog card. categories determines the sub-blog. tags are optional labels for your own organization. published is optional and defaults to true.
To make a post appear in more than one sub-blog, list multiple categories:
categories: [research, building]
After the YAML block, write the article in Markdown. An optional <!--more--> marker can control where Jekyll generates excerpts if you prefer that over setting excerpt yourself.
Create another sub-blog
For a new sub-blog called Teaching, use the lowercase, URL-safe category name teaching consistently.
-
Add this item to
_data/blog_topics.yml:- title: "Teaching" slug: "teaching" description: "Courses, materials, and reflections on teaching." -
Create
_pages/blog/teaching.mdwith this YAML and Liquid template:```markdown
layout: single title: “Teaching” permalink: /blog/teaching/ author_profile: true classes: wide —
Courses, materials, and reflections on teaching.
No public posts in this topic yet.
3. Put `teaching` in the `categories` YAML field of any related post.
The new topic card will appear automatically on `/blog/`, and matching posts will appear on `/blog/teaching/` after GitHub Pages builds the site.
## Visibility and private drafts
Set `published: false` in a post's YAML to keep Jekyll from rendering it. This is useful for local previews, but it is **not private** when the source is committed to a public GitHub repository: visitors can still read the source file on GitHub.
For genuinely private writing, keep it in `private-drafts/`, which is excluded by `.gitignore`, or use a private repository. GitHub Pages itself does not provide post-level access control on a public site.
Use `_drafts/` only for posts you are comfortable committing. Jekyll does not publish that folder normally, but its files are still visible in a public repository.
## Local preview
This site uses the GitHub Pages-compatible Minimal Mistakes remote theme pinned in `_config.yml`. On the first `bundle exec jekyll serve`, Jekyll downloads the theme from GitHub and caches it locally, so an internet connection is required.
Install Ruby 3.3 with the MSYS2 DevKit from a VS Code PowerShell terminal:
```powershell
winget install --exact --id RubyInstallerTeam.RubyWithDevKit.3.3 --source winget --accept-package-agreements --accept-source-agreements
Restart the VS Code terminal after installation so Windows can refresh PATH. RubyInstaller includes RubyGems; install or update Bundler, then install this site’s dependencies:
ruby --version
gem install bundler
bundle --version
bundle install
bundle exec jekyll serve
Open http://localhost:4000. Use bundle exec jekyll serve --drafts to preview files stored in _drafts, or bundle exec jekyll serve --unpublished to preview a post with published: false.
To update the theme later, change the version after @ in remote_theme to an existing Minimal Mistakes release tag. Keep jekyll-remote-theme and jekyll-include-cache in the plugins list; GitHub Pages requires them for this theme.
Upload to GitHub Pages
When a post or sub-blog is ready, commit and push its Markdown, YAML, and any images to your GitHub repository. For a typical main branch workflow:
git add _posts _pages _data assets
git commit -m "Add research note"
git push origin main
GitHub Pages will rebuild the site after the push. Do not add private-drafts/; .gitignore keeps it out of git add by default.
After creating your GitHub repository, update _config.yml:
- For
username.github.io, leavebaseurl: ""and seturl: "https://username.github.io". - For a project repository named
homepage, setbaseurl: "/homepage"andurl: "https://username.github.io". - Set
repositorytousername/repository-name.
Then enable GitHub Pages in the repository settings with the deployment source set to GitHub Actions or a branch. The github-pages Gemfile dependency keeps local builds close to GitHub Pages.