Di Hugo terdapat banyak theme yang dapat Anda temukan baik dari website resmi atau dari Github dan Gitlab. Berikut merupakan panduan singkat untuk menginstal theme di hugo.
Untuk membuat situs baru gunakan perintah.
hugo new site NewSiteLalu masuk ke direktori NewSite.
cd NewSiteContoh theme yang digunakan untuk panduan kali ini adalah https://gitlab.com/writeonlyhugo/up-business-theme.git.
Jalankan git init lalu clone repository.
git init
git submodule add https://gitlab.com/writeonlyhugo/up-business-theme.git themes/up-business-themeHapus file konfig hugo.toml
rm hugo.tomlCopy konfigurasi beserta content dan data dari direktori theme.
cp themes/up-business-theme/hugoBasicExample/config.yaml .
cp -a themes/up-business-theme/hugoBasicExample/content/* content/
cp -a themes/up-business-theme/hugoBasicExample/data/* data/
Ini dapat berbeda tergantung dari theme yang Anda pilih.
Terakhir jalankan local development untuk memastikan theme sudah terinstal.
hugo server