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.
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:
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 :
Linux installation methods are described here:
https://gohugo.io/installation/linux/
boresk
May 18, 2024, 4:24pm
10
Ok, that should solve it. Thanks a lot
boresk
May 18, 2024, 8:33pm
11
Ok, it works now. I’ve downloaded the .deb from hugo releases.
Edit:
For Ananke theme, pick the extended version of Hugo.
system
Closed
May 20, 2024, 8:34pm
12
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.