I'm stuck!

Stranded again!

After one successful run I deleted all and tried to install it again from zero.
And here is what happens (direct screen copy) .
I tried to follow the »Get Started« exactly, but failed.
Can you find any mistake?

iadi@adi-quad ~ $ hugo new site quickstart
Congratulations! Your new Hugo site is created in “/home/iadi/quickstart”.
iadi@adi-quad ~ $ cd quickstart
iadi@adi-quad ~/quickstart $ git init
Initialisierte leeres Git-Repository in /home/iadi/quickstart/.git/
iadi@adi-quad ~/quickstart $ git submodule add GitHub - theNewDynamic/gohugo-theme-ananke: Ananke: A theme for Hugo Sites themes/ananke
Klone nach ‘themes/ananke’ …
remote: Enumerating objects: 2417, done.
remote: Counting objects: 100% (440/440), done.
remote: Compressing objects: 100% (234/234), done.
remote: Total 2417 (delta 212), reused 356 (delta 179), pack-reused 1977
Empfange Objekte: 100% (2417/2417), 4.44 MiB | 4.58 MiB/s, Fertig.
Löse Unterschiede auf: 100% (1308/1308), Fertig.
Prüfe Konnektivität … Fertig.
iadi@adi-quad ~/quickstart $ echo theme = “ananke” >> config.toml
iadi@adi-quad ~/quickstart $ hugo new posts/seite01.md
Error: yaml: line 1: did not find expected key

CAn you spot anything I did wrong?

You need the \ before the " (so \") in this line. Otherwise the shell ‘eats’ the quotes.

1 Like

Thanks, but it was in the screenshot, got lost only by uploading here.
Here a new try (WITH the backsashes!):
echo theme = “ananke” >> config.toml
can you see them?

I followed the quick-start, it works as intended :

hugo new site quickstart
cd quickstart
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
echo theme = \"ananke\" >> config.toml
hugo new posts/my-first-post.md
hugo server -D

here’s my config.toml.
What’s in yours ?

baseURL = 'http://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme = "ananke"

What version of Hugo are you using ?
I am on :

hugo v0.93.2+extended linux/amd64 BuildDate=unknown

When you copy / paste your commands, don’t forget to put them into code blocks

1 Like