Hugo

Install Hugo On Ubuntu

wget https://github.com/gohugoio/hugo/releases/download/v0.81.0/hugo_extended_0.81.0_Linux-64bit.deb
sudo apt-get install ./hugo_extended_0.81.0_Linux-64bit.deb

source

Hugo Server Bind IP

hugo server --bind=ip --baseURL=http://ip:1313

ref:

  1. https://discourse.gohugo.io/t/hugo-server-only-serves-to-host-computer/5664/7

  2. https://github.com/gohugoio/hugo/issues/1582#issuecomment-157080458

Use New Archetype Create Post In Posts Folder

the archetype directory:

archetypes
├── default.md
└── question.md

I want to create a new post use question.md in ~\content\posts\question-2021-4.md, I will use order:

hugo new --kind=question posts/"question-2021-4".md

source