Even theme 設定筆記

Setup

Use this theme

  1. 下載 theme git submodule add https://github.com/olOwOlo/hugo-theme-even themes/even && git submodule update
  2. 使用此 theme 所自帶的 config file cp themes/even/exampleSite/config.toml .

Config file

  1. 更改 hugo 時的 Publish directory:
    • config.toml 加入 publishdir = "docs",讓 Github Pages 可以從此資料夾獲取資料
  2. 放置 Disqus 留言板:
    • 官方網站 註冊帳號
    • 創建一個新的網站並記錄下 _disqusshortname
    • config.toml 加入 comment = true 和 設置 disqusShortname = "..."
  3. 設置 googleAnalytics

Git submodule 小記

To remove a submodule, do

1
2
3
git submodule deinit <asubmodule>    
git rm <asubmodule>
rm -rf .git/modules/<asubmodule>