gohugo-theme-ananke
gohugo-theme-ananke copied to clipboard
bug: ### Getting started - The config file instructions do not seem to be correct
Following the instructions at https://github.com/theNewDynamic/gohugo-theme-ananke README for getting started with the theme and example site, the behaviour is not as expected; and the instructions included an invalid step.
Expected Behavior
After following the instructions under "Getting started", I'm expecting the front page to look similar to that at https://gohugo-theme-ananke.pages.dev/ (without the recent articles).
Current Behavior
The front page ( http://localhost:1313/ ) shows a black area with title "My New Hugo Site"
Possible Solution
Not sure, I am new to Hugo and picked the Ananke theme as it looked attractive and there was a tutorial. I am guessing the instructions are out of date with respect to the latest version of Hugo, and the actual content of the current config.toml
file.
Steps to Reproduce
- hugo new site testsite
- cd testsite
- git init
- git submodule https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke (NOTE: I didn't install "go" as that was only mentioned under the Hugo Module installation method, which I didn't use)
- cp themes/ananke/exampleSite/config.toml .
- The instructions say "You may need to delete the line:
themesDir = "../.."
" , but there was no such line. - Add the line
themes = 'ananke'
to the end of the defaulthugo.toml
(This step was not in the README, see below) - hugo server
Context (Environment)
I am trying to use the Example Site as a starting point, and add my own customizations from there.
Detailed Description
It seems that the config.toml
file in the project's root directory is ignored entirely -- if I rename the file to something random, there are no changes in behaviour. I am using hugo v0.135.0 in Ubuntu on WSL2.
The step 7 in my list above, was not in the Ananke README, but omitting this step causes the home page to just give Page Not Found
. The instruction to add themes = 'ananke'
was given at https://gohugo.io/getting-started/quick-start/ .