I am looking for a working example for multilanguage support. I did clone the following repo: https://github.com/rayjolt/hugo-multilingual-example,
but I get page not found errors after execution…
I also tried with different themes, but am getting the same error again…
every bit of help is appreciated. I am using hugo version 0.111.03 here so please let me know if something is known to not work here…
This is how my config file looks:
baseURL = ""
languageCode = "en-us"
title = "Bits & pieces - Sven Wehrend"
theme = "hugo-book"
[Languages]
[Languages.en]
Languagename = 'English'
[[Languages.menu.before]]
name = "Web-Blog"
url = "/en/posts/web/"
weight = 10
[[Languages.en.menu.before]]
name = "Synth-Blog"
url = "/en/tags/synth/"
weight = 20
[[Languages.en.menu.before]]
name = ""
url = "/en/docs/"
weight = 10
[[Languages.en.menu.before]]
name = "Electronics 101"
url = "/en/pages/prequel-short-introduction-to-electronics"
weight = 26
[[Languages.en.menu.before]]
name = "Electronics 102"
url = "/en/pages/short-introduction-to-electronics-102"
weight = 27
[[Languages.en.menu.after]]
name = "Digital Logic 1 (Overview)"
url = "/en/pages/overview/"
weight = 20
[[Languages.en.menu.before]]
name = "Digital Logic 2 (Overview)"
url = "/en/pages/overview2/"
weight = 25
[[Languages.en.menu.after]]
name = "About"
url = "/en/pages/about/"
weight = 10
[Languages.de]
Languagename='Deutsch'
[[Languages.de.menu.before]]
name = "Web-Blog"
url = "/posts/web/"
weight = 10
[[Languages.de.menu.before]]
name = "Synth-Blog"
url = "/tags/synth/"
weight = 20
[[Languages.de.menu.before]]
name = ""
url = "/docs/"
weight = 10
[[Languages.de.menu.before]]
name = "Elektronik 101"
url = "/pages/prequel-short-introduction-to-electronics"
weight = 26
[[Languages.de.menu.before]]
name = "Elektronik 102"
url = "/pages/short-introduction-to-electronics-102"
weight = 27
[[Languages.de.menu.after]]
name = "Digitale Logik 1 (Übersicht)"
url = "/pages/overview/"
weight = 20
[[Languages.de.menu.before]]
name = "Digitale Logik 2 (Übersicht)"
url = "/pages/overview2/"
weight = 25
[[Languages.de.menu.after]]
name = "Über mich "
url = "/pages/about/"
weight = 35
[[frontmatter]]
date = "filename"
[params]
date_format = "2006-01-02"
# (Optional, default light) Sets color theme: light, dark or auto.
# Theme 'auto' switches between dark and light modes based on browser/os preferences
BookTheme = 'light'
# (Optional, default true) Controls table of contents visibility on right side of pages.
# Start and end levels can be controlled with markup.tableOfContents setting.
# You can also specify this parameter per page in front matter.
BookToC = false
[security]
enableInlineShortcodes = false
[security.exec]
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']
osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']
[markup.asciidocext]
extensions = ["asciidoctor"]
workingFolderCurrent = true
trace = true
verbose = true
sven@kali:~/development/test/hugo-multilingual-example$ hugo server
WARN 2024/09/15 16:52:28 Module “project” is not compatible with this Hugo version; run “hugo mod graph” for more information.
Start building sites …
hugo v0.111.3+extended linux/amd64 BuildDate=2023-03-16T08:41:31Z VendorInfo=debian:0.111.3-1
ERROR 2024/09/15 16:52:28 render of “page” failed: “/home/sven/development/test/hugo-multilingual-example/layouts/_default/baseof.html:2:15”: execute of template failed: template: _default/single.html:2:15: executing “_default/single.html” at : can’t evaluate field LanguageCode in type *langs.Language
ERROR 2024/09/15 16:52:28 render of “home” failed: “/home/sven/development/test/hugo-multilingual-example/layouts/_default/baseof.html:2:15”: execute of template failed: template: _default/home.html:2:15: executing “_default/home.html” at : can’t evaluate field LanguageCode in type *langs.Language
ERROR 2024/09/15 16:52:28 render of “page” failed: “/home/sven/development/test/hugo-multilingual-example/layouts/_default/baseof.html:2:15”: execute of template failed: template: _default/single.html:2:15: executing “_default/single.html” at : can’t evaluate field LanguageCode in type *langs.Language
ERROR 2024/09/15 16:52:28 render of “taxonomy” failed: “/home/sven/development/test/hugo-multilingual-example/layouts/_default/baseof.html:2:15”: execute of template failed: template: _default/list.html:2:15: executing “_default/list.html” at : can’t evaluate field LanguageCode in type *langs.Language
Error: Error building site: failed to render pages: render of “page” failed: “/home/sven/development/test/hugo-multilingual-example/layouts/_default/baseof.html:2:15”: execute of template failed: template: _default/single.html:2:15: executing “_default/single.html” at : can’t evaluate field LanguageCode in type *langs.Language
Built in 22 ms
I tried klakegg/hugo:latest and with that setting I got the following response- looks like asciidoctor is missing - but it should be there…
make up 2&> TEST.LOG
docker run -it -v “/home/sven/development/hugo”:/src -p 1313:1313 “klakegg/hugo:latest” server --disableFastRender --renderToDisk --verbose
Start building sites …
hugo v0.111.3-5d4eb5154e1fed125ca8e9b5a0315c4180dab192 linux/amd64 BuildDate=2023-03-12T11:40:50Z VendorInfo=hugoguru
INFO 2024/09/26 14:32:12 syncing static files to /
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[0;33mWARNe[0m 2024/09/26 14:32:15 e[1;36m"/src/content/en/docs/digital_logic/00_combinatorial_logic.adoc:1:1"e[0m: duplicate menu entry with identifier “00_combinatorial_logic” in menu “docs”
e[0;33mWARNe[0m 2024/09/26 14:32:15 e[1;36m"/src/content/en/docs/digital_logic/01_boolean_algebra.adoc:1:1"e[0m: duplicate menu entry with identifier “01_boolean_algebra” in menu “docs”
e[0;33mWARNe[0m 2024/09/26 14:32:15 e[1;36m"/src/content/en/docs/digital_logic/02_xor.adoc:1:1"e[0m: duplicate menu entry with identifier “02_XOR” in menu “docs”
e[0;33mWARNe[0m 2024/09/26 14:32:15 e[1;36m"/src/content/en/docs/digital_logic/03_binary_system.adoc:1:1"e[0m: duplicate menu entry with identifier “03_binary_system” in menu “docs”
e[0;33mWARNe[0m 2024/09/26 14:32:15 e[1;36m"/src/content/en/docs/digital_logic/04_signs.adoc:1:1"e[0m: duplicate menu entry with identifier “04_Signs” in menu “docs”
e[0;33mWARNe[0m 2024/09/26 14:32:15 e[1;36m"/src/content/en/docs/digital_logic/05_alu.adoc:1:1"e[0m: duplicate menu entry with identifier “05_ALU” in menu “docs”
e[0;33mWARNe[0m 2024/09/26 14:32:15 e[1;36m"/src/content/en/docs/digital_logic/06_memory.adoc:1:1"e[0m: duplicate menu entry with identifier “06_Memory” in menu “docs”
e[0;33mWARNe[0m 2024/09/26 14:32:15 e[1;36m"/src/content/en/docs/digital_logic/07_RISC_V.adoc:1:1"e[0m: duplicate menu entry with identifier “07_RISC-V” in menu “docs”
e[0;33mWARNe[0m 2024/09/26 14:32:15 e[1;36m"/src/content/en/docs/digital_logic_2/10_sequential_logic.adoc:1:1"e[0m: duplicate menu entry with identifier “10_sequential_logic” in menu “docs”
e[0;33mWARNe[0m 2024/09/26 14:32:15 e[1;36m"/src/content/en/docs/digital_logic_2/11_clocks_and_registers.adoc:1:1"e[0m: duplicate menu entry with identifier “11_Clocks_flipflops_and_registers” in menu “docs”
e[0;33mWARNe[0m 2024/09/26 14:32:15 e[1;36m"/src/content/en/docs/digital_logic_2/images/how_does_cpu/index.md:1:1"e[0m: duplicate menu entry with identifier “Digital Logic 2” in menu “after”
e[0;33mWARNe[0m 2024/09/26 14:32:15 e[1;36m"/src/content/en/docs/digital_logic_x/X0_multiplication.adoc:1:1"e[0m: duplicate menu entry with identifier “x0_multiplication” in menu “docs”
e[0;33mWARNe[0m 2024/09/26 14:32:15 e[1;36m"/src/content/en/docs/digital_logic_x/X2_cordic.adoc:1:1"e[0m: duplicate menu entry with identifier “x2_cordic” in menu “docs”
e[0;33mWARNe[0m 2024/09/26 14:32:15 e[1;36m"/src/content/en/docs/digital_logic_x/_index.md:1:1"e[0m: duplicate menu entry with identifier “digital_logic_X” in menu “docs”
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[1;31mERRORe[0m 2024/09/26 14:32:15 asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
e[?25h
e[KError: Error building site: logged 94 error(s)
Built in 3540 ms
make: *** [Makefile:11: up] Fehler 255
Thanks for looking into this: Version 0.111.3 is the latest one that I got working,… with docker.
I tried to load 0.112.0 or something higher, but did not get it working…
What am I doing wrong?
I did not test yet without docker but even on debian 12 111.3. seems to be the latest I can get…
So, I tried to install the latest available version prebuilt (v0.135.0) and installed asciidoctor, but the result when running /usr/local/bin/hugo is as follows:
/usr/local/bin/hugo 2> logfile.log
Start building sites …
hugo v0.135.0-f30603c47f5205e30ef83c70419f57d7eb7175ab linux/amd64 BuildDate=2024-09-27T13:17:08Z VendorInfo
=gohugoio
ERROR invalid front matter: date: 2023-06-21 21:15:55 UTC: see /home/sven/development/hugo/content/pages/ele
ctronics-102.adoc
ERROR invalid front matter: date: 2023-06-21 21:15:55 UTC: see /home/sven/development/hugo/content/pages/ele
ctronics-102-de.adoc
ERROR invalid front matter: date: 2021-01-23 22:13:55 UTC: see /home/sven/development/hugo/content/pages/pre
quel-short-introduction-to-electronics.adoc
ERROR invalid front matter: date: 2021-01-23 22:13:55 UTC: see /home/sven/development/hugo/content/pages/pre
quel-short-introduction-to-electronics-de.adoc
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/_index.md”: open /home/sven/d
evelopment/hugo/public/Makefile: permission denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/_index.md”: open /home/sven/d
evelopment/hugo/public/About _ Interdependent_files/menu.svg: permission denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/_index.md”: open /home/sven/d
evelopment/hugo/public/About _ Interdependent_files/toc.svg: permission denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/_index.md”: open /home/sven/d
evelopment/hugo/public/agenda.png: permission denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/_index.md”: open /home/sven/d
evelopment/hugo/public/About _ Interdependent_files/book.min.47b5efafb96f29564c0044b3025d4bd46adf833784ff6ab
582f5fdc011eea7c3.css: permission denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/_index.md”: open /home/sven/d
evelopment/hugo/public/About _ Interdependent_files/en.search.min.ae4e192eb5f5487f31a8859819c4521836028ee6d9
2f1bb5c48e40e92a1cd663.js: permission denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/_index.md”: open /home/sven/d
evelopment/hugo/public/About _ Interdependent_files/flexsearch.min.js: permission denied
WARN deprecated: resources.ToCSS was deprecated in Hugo v0.128.0 and will be removed in a future release. U
se css.Sass instead.
ERROR asciidoctor not found in $PATH: Please install.
Leaving AsciiDoc content unrendered.
WARN deprecated: .Sites.First was deprecated in Hugo v0.127.0 and will be removed in a future release. Use
.Sites.Default instead.
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/agenda.ods: permission denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/agenda2.ods: permission denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/images/how_does_cpu/instruction_types.ods: perm
ission denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/images/how_does_cpu/1bit_alu_cell.svg: permissi
on denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/images/how_does_cpu/1bit_alu_cell_with_overflow
.svg: permission denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/images/how_does_cpu/1bit_alu_cell_with_xor.svg:
permission denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/images/how_does_cpu/addition.svg: permission de
nied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/images/how_does_cpu/addition_extended.svg: perm
ission denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/images/how_does_cpu/alu_array.svg: permission d
enied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/images/how_does_cpu/alu_array_with_less.svg: pe
rmission denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/images/how_does_cpu/alu_array_with_zero.svg: pe
rmission denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/images/how_does_cpu/alu_symbol.svg: permission
denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/images/how_does_cpu/alu_symbol_concrete.svg: pe
rmission denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/images/how_does_cpu/and_symbol.svg: permission
denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/images/how_does_cpu/arithmetic_shift.svg: permi
ssion denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/images/how_does_cpu/barrel_shifter_ptl.svg: per
mission denied
ERROR Failed to publish Resource for page “/home/sven/development/hugo/content/docs/digital_logic/_index.md”
: open /home/sven/development/hugo/public/docs/digital_logic/images/how_does_cpu/binary_system.svg: permissi
on denied
That’s not a parsable date. Use one of these instead:
Example
Time zone
2023-10-15T13:18:50-07:00
America/Los_Angeles
2023-10-15T13:18:50-0700
America/Los_Angeles
2023-10-15T13:18:50Z
Etc/UTC
2023-10-15T13:18:50
Default is Etc/UTC
2023-10-15
Default is Etc/UTC
15 Oct 2023
Default is Etc/UTC
The last three examples are not fully qualified. Unless you set the timeZone parameter in your site configuration, the last three examples are in the Etc/UTC time zone (Coordinated Universal Time).
Make sure you have permission to traverse to the public directory and to read/write within it.
Do what the message tells you to do: use css.Sass instead.
Do what the message tells you to do: use .Sites.Default instead.
What happens when you type which asciidoctor?
I also noticed that you installed the standard version of Hugo instead of the extended version. That’s fine, but you will not be able to transpile Sass to CSS using the LibSass transpiler, nor will you be able to convert images to the WebP format.
@jmooring Thanks for pointing it out, somehow public was assigned to root user when doing this via docker image. I got the native binary working (extended version).
But now I am still confronted with no langugage switcher menu, which does not show, despite its appearence in the theme (I use hugo-book, the latest version from git).
So somehow the language switcher doesnt show up. Also no hint in the log…’
Any ideas?
Attached the current config file config.toml:
baseURL = "http://wehrend.uber.space/"
languageCode = "en-us"
title = "Bits & pieces - Sven Wehrend"
theme = "hugo-book"
[languages]
[languages.en]
title = "Multilingual Hugo Example"
weight = 0
languagename = "English"
[[languages.en.menu]]
name = "Web-Blog"
url = "/posts/web/"
weight = 10
[[languages.en.menu]]
name = "Synth-Blog"
url = "/tags/synth/"
weight = 20
[[languages.en.menu]]
name = "docs"
url = "/docs/"
weight = 10
[[languages.en.menu]]
name = "Electronics 101"
url = "/pages/prequel-short-introduction-to-electronics"
weight = 26
[[languages.en.menu]]
name = "Electronics 102"
url = "/pages/short-introduction-to-electronics-102"
weight = 27
[[languages.en.menu]]
name = "Digital Logic 1 (Overview)"
url = "/pages/overview/"
weight = 20
[[languages.en.menu]]
name = "Digital Logic 2 (Overview)"
url = "/pages/overview2/"
weight = 25
[languages.de]
title = "Multilingue Exemple Hugo"
weight = 1
languagename = "Deutsch"
[[languages.de.menu]]
name = "Elektronik 101"
url = "/pages/prequel-short-introduction-to-electronics-de"
weight = 19
[[languages.de.menu]]
name = "Elektronik 102"
url = "/pages/short-introduction-to-electronics-102-de"
weight = 20
[[languages.en.menu]]
name = "About"
url = "/pages/about/"
weight = 10
[[languages.de.menu]]
name = "Über mich"
url = "/pages/ueber/"
weight = 10
[[frontmatter]]
date = "filename"
[params]
date_format = "2006-01-02"
# (Optional, default light) Sets color theme: light, dark or auto.
# Theme 'auto' switches between dark and light modes based on browser/os preferences
BookTheme = 'light'
# (Optional, default true) Controls table of contents visibility on right side of pages.
# Start and end levels can be controlled with markup.tableOfContents setting.
# You can also specify this parameter per page in front matter.
BookToC = false
[security]
enableInlineShortcodes = false
[security.exec]
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']
osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$']
[markup.asciidocext]
extensions = ["asciidoctor"]
workingFolderCurrent = true
trace = true
verbose = true
I get those table as a result, showing up ‘en’ as well as ‘de’ - but no language switcher in the theme …
So I am basically stuck here - is there a way to manipulate the given example so that it adjusts for my goals?
| EN | DE
-------------------+-----+-----
Pages | 139 | 8
Paginator pages | 3 | 0
Non-page files | 267 | 7
Static files | 78 | 78
Processed images | 0 | 0
Aliases | 35 | 2
Cleaned | 0 | 0
Built in 13706 ms
Environment: "development"
Serving pages from disk
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop