返回上一页

欢迎

你好,这是本站的第一篇文章。

图片存放在 Cloudflare R2(桶 dongli-blog-resources),通过 CDN 子域访问。在 hugo.toml 设置 params.imageCDN 为 https://img.<你的域名> 后,正文里用相对路径即可(见下图)。

R2 图床测试图

写新文章:

hugo new content posts/你的标题.zh-cn.md
.\scripts\upload-image.ps1 -LocalPath .\图.webp -ObjectKey posts/2026/你的标题/cover.webp

本地预览:hugo server -D。图床说明见仓库 docs/r2-image-hosting.md。