Failed to resolve "content" to an archetype template, Ananke theme

I have the following langage config from Ananke theme:

[languages]
  [languages.en]
    title = "Ananke"
    weight = 2
    contentDir = "content/en"
    # languageDirection = 'rtl' for Right-To-Left languages
  [languages.fr]
    title = "Ananke Fr"
    weight = 1
    contentDir = "content/fr"

When I type hugo new content fr/posts/page.md I get failed to resolve "content" to an archetype template. I get the error no matter what path I give.

But it works if I just provide a path.

https://gohugo.io/content-management/multilingual/#generate-multilingual-content-with-hugo-new-content

Nop, I’m following that tutorial.

I get the same error with:
hugo new content content/fr/posts/page.md

content is the problem.

I am unable to reproduce the problem:

I started with this empty directory structure:

content/
├── en/
└── fr/

Then I entered these commands:

image

I’ve added ananke with the git submodule command. Could this be a problem?

The ananke theme seems to be working fine.

No. That’s exactly what I did.

hugo new site quickstart
cd quickstart
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
echo "theme = 'ananke'" >> hugo.toml

Then I copied/pasted your language configuration into hugo.toml.

Then…

mkdir content/{en,fr}
hugo new content content/en/posts/page.md
hugo new content content/fr/posts/page.md

No problems. Tested with hugo v0.126.1.

Which version are you running?

hugo v0.111.3+extended linux/amd64 BuildDate=2023-03-16T08:41:31Z VendorInfo=debian:0.111.3-1

Seems like I’m runint the wrong version. I’ve installed with debian, is it outdated? Should I install with Nix?

See minimum version requirement listed in the quick start guide:

image

Linux installation methods are described here:
https://gohugo.io/installation/linux/

Ok, that should solve it. Thanks a lot

Ok, it works now. I’ve downloaded the .deb from hugo releases.

Edit:

For Ananke theme, pick the extended version of Hugo.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.