The following is the process I used to install Hugo on POP_OS! 19.04.
$ symbol in the steps below represent the linuxbrew or current directory within linuxbrew. In my case that’s located at…
joe@pop-os:/home/linuxbrew/$
Install Git
$ sudo apt install git
Install Homebrew for Linux
$ cd /home
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
Hugo
$ cd linuxbrew/
$ sudo apt install linuxbrew-wrapper
$ brew install hugo
$ sudo apt install hugo
$ hugo version
$ hugo new site quickstart
$ cd quickstart/themes/
Choose and download a theme to the themes folder within quickstart. In my case i”m going to use the Ananke Gohugo Theme.
$ git clone https://github.com/budparr/gohugo-theme-ananke.git
$ cd ..
$ git init
Edit your config.toml file and add the folder name to the theme file.
baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
theme = "gohugo-theme-ananke"
Start Hugo
$ hugo server -D
If everything worked as expected your hugo site should be live at http://localhost:1313/
If you’re curious the test site I published to netlify is at https://epic-mayer-0e6e10.netlify.com/
Leave a Reply