Hugo on your MacOS
- Setting github
- create a repo named blogs for store hugo programes.
- Create another repo named echowings.github.io to host websit.
- generate ssh key and regist it on github settings.
- Install hugo
| |
- Create a blog site.
| |
- init git
| |
- Test hugo at local.
| |
- You can access http://localhost:1313 to test your blog in local.
Change configure
- Modifiy vi config.toml
| |
Add syntax highlight
vi config.toml
add
| |
Deploy your blog to github
- Add repo of blog website.
| |
Run hugo to generate your blog website.
1 2hugo serverpublish your website
1 2 3 4 5cd public git add. git commit -m "YOUR COMMIT MESSAGE" git push origin masterBackup your hugo blog to github
1 2 3 4 5cd .. git add. git commit -m "YOUR COMMIT MESSAGE" git push origin master
Add a comment
Since theme jane has support utterances, we just need to enable utterances apps in github and configure it in config.toml in hugo.
Create a repo to storage comment. like “blogcomment”.
enable utternaces apps.
- click utterances app
- Auth utterances to your github repo “blogcomment”.
edit
blogs/config.tomland append follow lines.
[params.utteranc] enable = true repo=“echowings/blogcomment” issueTerm=“pathname”
| |