Closed nachsommer closed 5 years ago
What's your configuration looks like? See Hugo docs: https://gohugo.io/content-management/multilingual/#menus
I just did some changes to adapt to multilingual mode, you can test it. 😊
Thanks for the quick answer! My configuration looks like this:
defaultContentLanguage = "en" defaultContentLanguageInSubdir = false
[languages.de] languageCode = "de-de" contentDir = "content/de"
title = "synapsen"
languageName = "Deutsch" weight = 1
name = "synapsen" homeSubtitle = "ein digitaler zettelkasten"
[[languages.de.menu.main]] name = "Galerie" url = "gallery" weight = 10
[[languages.de.menu.main]] name = "Laden" url = "laden" weight = 20
[[languages.de.menu.main]] name = "Lizenz" url = "lizenz" weight = 30
[[languages.de.menu.main]] name = "FAQ" url = "faq/" weight = 40
[[languages.de.menu.main]] name = "Ãœber" url = "about" weight = 50
[[languages.de.menu.main]] name = "Literatur" url = "literatur" weight = 60
[[languages.de.menu.main]] name = "🇬🇧" url = "/en" weight = 70
[languages.en] languageCode = "en-us" contentDir = "content/en"
title = "synapsen" homeSubtitle = "a digital card index"
name = "synapsen"
weight = 0 languageName = "English"
[[languages.en.menu.main]] name = "Gallery" url = "/gallery/" weight = 10
[[languages.en.menu.main]] name = "Download" url = "/load" weight = 20
[[languages.en.menu.main]] name = "License" url = "/license/" weight = 30
[[languages.en.menu.main]] name = "FAQ" url = "/faq/" weight = 40
[[languages.en.menu.main]] name = "About" url = "/about/" weight = 50
[[languages.en.menu.main]] name = "References" url = "literature" weight = 60
[[languages.en.menu.main]] name = "🇩🇪" # url = "/de"
weight = 70
And the result differs like this:
English original:
and the german version (n.b. it also has an instagram icon which I did not configure :-)
Thanks for checking it!
Am 28.12.2018 um 08:34 schrieb Track3 notifications@github.com:
What's your configuration looks like? See Hugo docs: https://gohugo.io/content-management/multilingual/#menus https://gohugo.io/content-management/multilingual/#menus I just did some changes to adapt to multilingual mode, you can test it. 😊
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Track3/hermit/issues/17#issuecomment-450308428, or mute the thread https://github.com/notifications/unsubscribe-auth/AmF_iW9HfRGsnwz1j9LaaF-x3d4IYppZks5u9cmWgaJpZM4ZjFDB.
Just checked your changes. It works! Thank you so much. – The only thing: The instagram icon remains in the bar though I did not configure it. Any idea how to remove it?
Am 28.12.2018 um 08:34 schrieb Track3 notifications@github.com:
What's your configuration looks like? See Hugo docs: https://gohugo.io/content-management/multilingual/#menus https://gohugo.io/content-management/multilingual/#menus I just did some changes to adapt to multilingual mode, you can test it. 😊
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Track3/hermit/issues/17#issuecomment-450308428, or mute the thread https://github.com/notifications/unsubscribe-auth/AmF_iW9HfRGsnwz1j9LaaF-x3d4IYppZks5u9cmWgaJpZM4ZjFDB.
Did you mean you want the en site and the de site have different social icons?
No, not particularly. I only have configured this:
[[params.social]] name = "email" url = "mailto:info@verzetteln.de"
[[params.social]] name = "github" url = "https://github.com/nachsommer/synapsen"
And for some reason, the instagram icon shows up in the bar…
Am 28.12.2018 um 11:28 schrieb Track3 notifications@github.com:
Did you mean you want the en site and the de site have different social icons?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Track3/hermit/issues/17#issuecomment-450337317, or mute the thread https://github.com/notifications/unsubscribe-auth/AmF_iUKVmSFt1vGYslS6PR6K0oNBiSU4ks5u9fJegaJpZM4ZjFDB.
Is this all of the config for social icons? That's weird…
Try this command hugo config | grep -i params
or hugo config | FINDSTR /I params
if in Windows to check the full configuration.
Yes, that’s all of the config. The result:
params = map[dateformshort:Jan 2 dateformnum:2006-01-02 justifycontent:false dateformnumtime:2006-01-02 15:04 -0700 footercopyright: · synapsen version 4.3.8, 2018-12-16 dateform:Jan 2, 2006 bgimg:http://verzetteln.de/images/zk07.png homesubtitle:a digital card index social:[map[name:email url:mailto:info@verzetteln.de] map[defaultContentLanguageInSubdir:false name:github url:https://github.com/nachsommer/synapsen defaultContentLanguage:en]]]
Am 28.12.2018 um 12:33 schrieb Track3 notifications@github.com:
Is this all of the config for social icons? That's weird…
Try this command hugo config | grep -i params or hugo config | FINDSTR /I params if in Windows to check the full configuration.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Track3/hermit/issues/17#issuecomment-450345549, or mute the thread https://github.com/notifications/unsubscribe-auth/AmF_icva0zQ_GFfQBKheFj_DkzyhNvzJks5u9gGPgaJpZM4ZjFDB.
I totally have no idea, and I can't reproduce this
May I send you the whole config.toml? Perhaps you can reproduce the error with this. After the newest upgrade of the theme, the instagram icon shows also up with the standard English configuration...
Am 28.12.2018 um 13:01 schrieb Track3 notifications@github.com:
I totally have no idea, and I can't reproduce this
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Track3/hermit/issues/17#issuecomment-450348824, or mute the thread https://github.com/notifications/unsubscribe-auth/AmF_iT1N9hdbBZ5oFyoM7KETVsmHpiq1ks5u9gg2gaJpZM4ZjFDB.
OK, you can send me an email. address here
Problem solved.
In the default configuration, the bottom bar displays the correct links to the subcatgories. However, if you switch to a different language, the links got confused with different subcategories merged into the path. E.g. if the link http://localhost:1313/license/ does work well, the link in the german version looks like: http://localhost:1313/de/literatur/lizenz though it should look like http://localhost:1313/de/lizenz while another link should look like http://localhost:1313/de/literatur/ Any idea why it is generated like this? Thanks for your help!