↓ 跳过正文
  1. Posts/

第一篇:这个站点怎么来的

·200 字·1 分钟·
作者
Vasant Long
记录工程实践、工具链与踩过的坑。

站点用 Hugo + Blowfish 主题,构建产物由 GitHub Actions 推到 GitHub Pages,域名 vasantlong.de5.net。

一篇文怎么发
#

# 新建
hugo new content posts/my-new-post/index.md
# 本地预览(草稿也显示)
hugo server -D

改完推 main,Actions 自动构建部署。

渲染管线自检
#

行内代码:hugo --minify;代码块:

def ping_loss(samples: list[float]) -> float:
    return sum(1 for s in samples if s is None) / len(samples)

表格:

项值
静态产物public/
构建GitHub Actions
域名vasantlong.de5.net

数学公式(需 {{< katex >}} 短代码把 KaTeX 拉进来):行内 $E = mc^2$,块级:

$$ \int_0^1 x^2 \, dx = \frac{1}{3} $$