sudo dnfi git golang ruby ruby-devel
Do not install Hugo with
dnfas the version there is behind (out-of-date) and css transpiling will break.
Make sure the following exists in .zshrc
export $PATH=$PATH:$HOME/go/bin:$HOME/bin
Installing Hugo and Dart SASS
CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest
gem install sass-embedded
gem install dartsass
To uninstall Hugo (delete package), if want to switch editions
rm -rf $HOME/go/pkg/mod/github.com/gohugoio/
To uninstall a gem package
gem remove sass-embedded
gem remove dartsass
To setup hugo site using nightfall theme
hugo new site <githubuser>.github.io
cd <githubuser>.github.io
git init
git submodule add --depth=1 https://github.com/lordmathis/hugo-theme-nightfall.git themes/nightfall
echo "theme = 'nightfall'" >> hugo.toml
Finally, to build and run localhost server
hugo server