Skip to content

Instantly share code, notes, and snippets.

@caminashell
Last active February 5, 2026 02:27
Show Gist options
  • Select an option

  • Save caminashell/21671f840178d551bbd262806876ef25 to your computer and use it in GitHub Desktop.

Select an option

Save caminashell/21671f840178d551bbd262806876ef25 to your computer and use it in GitHub Desktop.
Install & running Hugo on Fedora

Install & running Hugo on Fedora

PRE-REQUISITS

sudo dnfi git golang ruby ruby-devel

IMPORTANT INSTALLATION NOTE

Do not install Hugo with dnf as the version there is behind (out-of-date) and css transpiling will break.

INSTALL & SETUP

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

CREATE & RUN

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment