A clean, minimal static blog built with Jekyll and hosted on GitHub Pages. Features a navigation-focused homepage and automatic deployment via GitHub Actions.
- Clean Design: Minimal, responsive design focused on readability
- Navigation-Focused Homepage: Homepage provides navigation rather than displaying posts
- Table of Contents: Automatic TOC generation for blog posts
- Search Functionality: Built-in search for posts and pages
- Category & Tag Organization: Easy content discovery
- GitHub Actions Deployment: Automatic build and deployment to GitHub Pages
- SEO Optimized: Built-in SEO tags and sitemap generation
- RSS Feed: Keep readers updated with new content
- Ruby 3.1 or higher
- Bundler gem
- Git
-
Clone the repository
git clone https://github.com/aaluopy/aaluopy.github.io.git cd aaluopy.github.io
-
Install dependencies
bundle install
-
Start the development server
bundle exec jekyll serve
-
Open your browser Navigate to
http://localhost:4000
-
Fork or clone this repository
-
Enable GitHub Pages
- Go to repository Settings
- Navigate to Pages section
- Set Source to "GitHub Actions"
-
Configure the site
- Edit
_config.yml
with your information - Update author details, site URL, and social links
- Edit
-
Push to main branch
- GitHub Actions will automatically build and deploy your site
.
├── _config.yml # Site configuration
├── _layouts/ # Page layouts
│ ├── default.html # Base layout
│ ├── home.html # Homepage layout
│ └── post.html # Blog post layout
├── _includes/ # Reusable components
│ ├── head.html # HTML head section
│ ├── header.html # Site header with navigation
│ ├── footer.html # Site footer
│ ├── social.html # Social media links
│ └── toc.html # Table of contents generator
├── _posts/ # Blog posts
├── _sass/ # Sass stylesheets
├── assets/ # Static assets
├── .github/workflows/ # GitHub Actions
│ └── jekyll.yml # Build and deploy workflow
├── about.md # About page
├── posts.md # All posts page
├── categories.md # Categories page
├── tags.md # Tags page
├── collections.md # Collections page
├── index.md # Homepage
├── Gemfile # Ruby dependencies
└── README.md # This file
-
Create a new file in
_posts/
directory with the format:YYYY-MM-DD-title-of-post.md
-
Add front matter at the beginning:
--- layout: post title: "Your Post Title" date: 2024-01-20 14:30:00 +0800 categories: [category1, category2] tags: [tag1, tag2, tag3] author: aaluopy ---
-
Write your content using Markdown
- Automatic TOC: Table of contents is generated automatically for h2 and h3 headings
- Syntax Highlighting: Code blocks with language-specific highlighting
- Categories & Tags: Organize content with categories and tags
- SEO: Automatic meta tags and structured data
Edit _config.yml
to customize:
# Site settings
title: "Your Blog Title"
subtitle: "Your Subtitle"
description: "Your blog description"
url: "https://yourusername.github.io"
# Author settings
author:
name: "Your Name"
email: "your-email@example.com"
github: "yourusername"
gitlab: "yourusername"
Customize the navigation menu in _config.yml
:
navigation:
- title: "Posts"
url: "/posts/"
- title: "Categories"
url: "/categories/"
- title: "Tags"
url: "/tags/"
- title: "Collections"
url: "/collections/"
- title: "About"
url: "/about/"
- Custom CSS can be added to
_includes/head.html
- Sass files can be created in
_sass/
directory - Override default styles by creating
assets/main.scss
-
Add your tracking ID to
_config.yml
:google_analytics: UA-XXXXXXXX-X
-
Create
_includes/google-analytics.html
with your tracking code
-
Add a
CNAME
file to the repository root:yourdomain.com
-
Configure DNS settings with your domain provider
To add comments, integrate with services like:
- Disqus
- Utterances (GitHub-based)
- Giscus (GitHub Discussions-based)
The blog is fully responsive and optimized for:
- Desktop computers
- Tablets
- Mobile phones
- Various screen sizes and orientations
- Automatic sitemap generation
- SEO-friendly URLs
- Meta tags and Open Graph tags
- Structured data markup
- RSS feed
- Fast loading times
欢迎提交 Issues 和 Pull Requests!
本项目采用 MIT 许可证。
感谢 Jekyll 和 GitHub Pages 提供的优秀服务。
如有问题,请通过以下方式联系:
- GitHub: github.com/aaluopy
- GitLab: gitlab.com/aaluopy
Happy blogging! 🎉