hugo快速入门

5分钟完成个人博客搭建

PREPARATION

git download
hugo download
Check git & hugo added in the environment variables (Windows).

The following steps are in Bash.

1
2
git version
hugo version

ON PREMISES

1
2
3
4
5
6
hugo new site blog
cd blog
git clone https://themeName themes/themeName
cp themes/themeName/exampleSite/* ./ -r
rm hugo.toml
hugo server

FIRST COMMIT

Github Create Repositoriy: username.github.io

1
2
3
4
5
6
7
hugo
cd public
git init
git remote add origin https://github.com/username/username.github.io.git
git add .
git commit -m "first commit"
git push -u origin master

LATER COMMIT

1
2
3
4
5
6
hugo
cd public
git add .
git status
git commit -m "add blog post"
git push

KATEX CONFUSION

display obsidian hugo
newline \\ \\\
% \% \\%
suffix { }_ { }\_
* * \*
{ \{ \\{
Licensed under CC BY-NC-SA 4.0
最后更新于 2023-09-20
comments powered by Disqus
Built with Hugo
主题 StackJimmy 设计