Setup Blog Hugo

Step by step Setup Hugo Blog

終於從 ghost 搬來 Hugo 啦

1. Setup github page: project.

https://androchentw.github.io/blog-hugo/

1
git clone https://github.com/androchentw/blog-hugo.git

2. Install Hugo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
brew install hugo
hugo new site blog-hugo
cd blog-hugo
git submodule add https://github.com/androchentw/blog-theme.git themes/beautifulhugo
echo 'theme = "beautifulhugo"' >> config.toml

hugo new posts/hello_world.md

# to preview at http://localhost:1313/
hugo server -D	

# to build static page
hugo -D

3. Setup GitHub Action

References

  1. 將部落格從 Wordpress 轉換到 Hugo
  2. ghostToHugo
  3. Hugo - Front Matter
  4. Hugo - Archetypes
  5. Hugo - URL Management
  6. Hugo 加入 Google Custom Search 站內搜尋功能
  7. 如在 Github Pages 建立 Hugo 靜態網站
tech  blog  hugo 

See also