Hugo #
Command Line #
help : hugo --help
generate folder public : hugo
new content : hugo new posts/newpost.md , hugo new docs/newdocs.md
Installation #
Windows 10 #
-
install scoop
Make sure PowerShell 5 (or later, include PowerShell Core) and .NET Framework 4.5 (or later) are installed. Then run:
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')or shorter
iwr -useb get.scoop.sh | iexNote: if you get an error you might need to change the execution policy (i.e. enable Powershell) with
Set-ExecutionPolicy RemoteSigned -scope CurrentUser -
install hugo dengan scoop
scoop install hugo-extendedinstall theme (cari di web hugo)
git submodule add https://github.com/alex-shpak/hugo-book themes/bookThen run hugo (or set theme = “book”/theme: book in configuration file)
hugo server --minify --theme book -
jalankan web dengan perintah
hugo servercopy link server ke browser.
Untuk generate folder public
command: hugofolder public akan muncul, website statis siap di upload.