a1

插入图片

- 必须使用 ![a1](/my_hugo_blog/images/a1.jpg)
- 而不是    ![a1](images/a1.jpg)

hugo 博客插入图片

把图片放在 static/ 文件夹下

your-hugo-site/
├── content/
│   └── docs/
│       └── read_books.md
├── static/
│   └── images/
│       └── a1.jpg        -------> 图片放在这里

然后使用
 ![a1](/images/a1.jpg)

draft = false 必须设置为 false! 否则无法渲染!

过程记录, 需要详细! 因为问题非常多!

hugo 是一个静态博客渲染工具, go 语言写的。

安装:

choco install hugo-extended # 失败。 估计是权限
scoop install hugo-extended # ok!

运行的话, 最好是使用 wsl , cmd 也行!!

新 hugo 建项目

hugo new site my_hugo_blog -f yaml cd my_hugo_blog

安装主题,

git init
git clone https://github.com/adityatelange/hugo-PaperMod themes/PaperMod --depth=1
git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod

新建文章

hugo new docs/test_file.md 修改 draft = true, —-> draft = false 否则无法渲染。