Contents

Hugo

Contents
  • Quick Reference
    • Create a new single page
      • hugo new posts/a/index.md
      • index.zh-cn.md for Chinese version
    • Local preview at localhost: 1313
      • hugo server ( -D to include drafts)
    • Update all submodules
      • git submodule init
      • git pull --recurse-submodules or git submodule update --remote --merge
    • version
      • hugo version show current version
      • brew upgrade hugo upgrade to latest version
    • If a page bundle is Chinese only
      • no need to have index.md placeholder
      • use test.jpg in index.zh-cn.md to refer to the test.zh-cn.jpg file
        • ![](test.jpg) and figure shortcode both work
  • doc style themes