Hello World

Welcome to the Zhi theme demo! This is a simple blog theme for Hugo.

Features

  • Dark/light theme toggle
  • Code highlighting with copy button
  • MathJax support
  • Mermaid diagrams
  • Video embedding (Bilibili/YouTube)
  • Image lightbox
  • Responsive design

Code Example

python
1
2
3
4
def hello(name: str) -> str:
    return f"Hello, {name}!"

print(hello("World"))

Math

Inline math: $E = mc^2$

Display math:

$$ \int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi} $$

Mermaid Diagram

mermaid
graph TD
    A[Start] --> B{Decision}
    B -->|Yes| C[Result]
    B -->|No| D[End]