This is the first post of this blog. I referenced many Jekyll templates at the time, adapted a custom theme inspired by Pure, and hosted it on GitHub.
Source code: haoxiqiang-template
Jekyll Overview
Jekyll is a static site generator that converts plain text (Markdown, Liquid templates) into a complete static website without requiring a database. Combined with GitHub Pages, it provides free blog hosting.
Features
Code Highlighting
Jekyll has built-in syntax highlighting powered by Rouge:
| |
LaTeX Math Rendering
Set latex: true in the page front matter to enable MathJax rendering:
$$ \begin{aligned} \dot{x} &= \sigma(y-x) \ \dot{y} &= \rho x - y - xz \ \dot{z} &= -\beta z + xy \end{aligned} $$
$$ a^2 + b^2 = c^2 $$
When $a \ne 0$, there are two solutions to $ax^2 + bx + c = 0$.
Excerpt Separator
Use `
` to mark the split point between the article summary and the full content.
Technical Dependencies
| Tool | Description | Version |
|---|---|---|
| Jekyll | Static blog generator | 2.5.2 |
| MathJax | LaTeX formula rendering | 2.4.0 |
| Duoshuo | Comment system (link may no longer be active) | 1.0.0 |
| Disqus | Comment system | 1.0.0 |
| haoxiqiang-template | Blog theme | 1.0.0 |