start a new blog
-
generate ssh-keygen For more information, please refer to this.
λ ssh-keygen -t rsa -b 4096 -C "thanks_music163@163.com" -
Add public key to github
-
Add ssh configuration
Host github-thanks_music HostName github.com User git IdentityFile ~/.ssh/id_rsa_thanks_music -
install Emacs package
ox-hugoM-x list-packagesor
use-package:(use-package ox-hugo :ensure t :after ox)Refer to document ox-hugo.
-
install hugo on macOS:
brew update; and brew install hugoRead the document about Hugo. Learn some basic terms and knowledge about Hugo. Refer to this.
-
read others’ configuration
- https://github.com/BloggerBust/bloggerbust.ca/blob/master/config.toml
- https://github.com/kaushalmodi/ox-hugo/blob/master/doc/config.toml
- https://github.com/kaushalmodi/ox-hugo/blob/master/test/site/config.toml
read ox-hugo official document.
also refer to hugo-dusk configuration.
-
setup Discus and Google Analytics
-
deploy to github
refer to this.
-
initialize on another computer or system Clone blog source repository and init submodules:
git submodule update --init --recursiveOn submodules, refer to this.
Happy Blogging. :P