Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cchessnz opened this issue Oct 12, 2024 · 0 comments
Assignees

Comments

@cchessnz
Copy link

Following the instructions at https:/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:/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/ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants