gohugo-theme-ananke icon indicating copy to clipboard operation
gohugo-theme-ananke copied to clipboard

bug: ### Getting started - The config file instructions do not seem to be correct

Open cchessnz opened this issue 4 months ago • 1 comments

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

  1. hugo new site testsite
  2. cd testsite
  3. git init
  4. 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)
  5. cp themes/ananke/exampleSite/config.toml .
  6. The instructions say "You may need to delete the line: themesDir = "../.."" , but there was no such line.
  7. Add the line themes = 'ananke' to the end of the default hugo.toml (This step was not in the README, see below)
  8. 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/ .

cchessnz avatar Oct 12 '24 10:10 cchessnz