Commands

Create site :

  • Create site “documentation”:

    hugo new site documentation
    
  • Launch server (with autoreload) :

    hugo server
    

http://localhost:1313

Install a theme :

  • Install theme :

    cd /themes
    git clone https://github.com/matcornic/hugo-theme-learn.git
    
  • Activate new theme in config.toml :

    theme = "hugo-theme-learn"
    

Create first post :

  • Create chapter (contains post) static-website-generators

    cd ..
    hugo new --kind chapter static-website-generators/_index.md
    
  • Create post hugo in chapter static-website-generators :

    hugo new static-website-generators/hugo.md
    

Deploy

  • Build :
    hugo
    

Build result in /public