Hugo is a fast and modern static site generator written in Go, and designed to make website creation fun again.
$ sudo dnf install hugo
If you are starting a new website, instead of creating all the necessary files yourself you can use the
hugo new command.
$ hugo new site my-site $ cd my-site
The command will generate all the directories and config.toml files for your new website but you need to install a theme before building the site.
Hugo have a list of themes on https://themes.gohugo.io/ that you can browse or you can create one yourself. Most themes use git so you just need to add them as git submodules:
$ git init $ git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke
To use the theme you need to add the theme parameter to the config.toml file
Hugo comes with a built in web server to use if you don’t want to install a web server. To run the server, you need to type:
$ hugo server
If you are editing and want to see your drafts, add the
Authors: Yotam Nachum