1.baseURL = “https://watermelonmax.github.io/"
2.[params.author] 属性决定了作者信息的展示方式。 作者的图片信息应该放在 assets/ 文件夹中。作者相关的链接将会按照排列顺序依次展示
3.content文件夹里 ├── assets │ └── img │ └── author.jpg ├── config │ └── _default ├── content │ ├── _index.md │ ├── about.md │ └── posts │ ├── _index.md │ ├── first-post.md │ └── another-post │ ├── aardvark.jpg │ └── index.md └── themes └── blowfish
-
pageRef: 站内某个页面。比如:pageRef = “posts” 链接到posts的内容
-
缩略图&背景图
放文章所在的文件夹里
background*` 开头的图像文件
-
在languages.en.toml中,params.logo中asests/文件中
-
文章:(1)content/posts/_index.md用来展示某个目录下的内容集合,如 `/project’(2)如果不写layouts也是可以运行的,只不过是blowfish自己的页面布局 (3)https://jianzhnie.github.io/post/hugo_site/
-
把本地的仓库推到github仓库:
cd public git init git remote add origin https://github.com/watermelonMax/watermelonMax.github.io git add . git commit -m “[介绍,随便写点什么,比如日期]” git push -u origin main
-
hugo进行编译,没错误的话修改的内容就顺利同步到
public下了,然后**cd public**下,执行提交命令:git add -A git commit -m "20200204-1" git push -u origin master
如何部署
首先设置仓库权限:https://blog.csdn.net/m0_74075298/article/details/141230617
如何加文章
1.在content文件夹里加一个新文件夹,比如“essay"的文件夹。这个文件夹是新的目录
在“essay"的文件夹里,新建_index.md文件作为目录。
-
config文件夹中的menus.en.toml中加入:
[[main]] name = “随笔” pageRef = “essay” weight = 20
-
如果加图片,需要在文件夹里加feature.jpg/pgn
-
hugo
-
hugo server 可看