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 |
{ }_ |
{ }\_ |
* |
* |
\* |
{ |
\{ |
\\{ |