Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal example of multilanguage support on Hugo #670

Open
wehrend opened this issue Dec 14, 2024 · 2 comments
Open

Minimal example of multilanguage support on Hugo #670

wehrend opened this issue Dec 14, 2024 · 2 comments

Comments

@wehrend
Copy link

wehrend commented Dec 14, 2024

Hi Alex,

first and foremost, thank you for your theme, it proofed to be the ideal one for my website.
However I have a few issues, extending it with support for multiple languages:

I tried to run this minimal example from rayjolt https://github.com/rayjolt/hugo-multilingual-example
and tried it to run with the book theme, but got no real output so far...

Below the log file:

hugo v0.139.4-3afe91d4b1b069abbedd6a96ed755b1e12581dfe+extended linux/amd64 BuildDate=2024-12-09T17:45:23Z VendorInfo=gohugoio

WARN Raw HTML omitted while rendering "/home/sven/test/hugo-multilingual-example/content/post/markdown-cheatsheet.en.md"; see https://gohugo.io/getting-started/configuration-markup/#rendererunsafe
You can suppress this warning by adding the following to your site configuration:
ignoreLogs = ['warning-goldmark-raw-html']
WARN Raw HTML omitted while rendering "/home/sven/test/hugo-multilingual-example/content/post/markdown-cheatsheet.fr.md"; see https://gohugo.io/getting-started/configuration-markup/#rendererunsafe
You can suppress this warning by adding the following to your site configuration:
ignoreLogs = ['warning-goldmark-raw-html']

               | EN | FR  

-------------------+----+-----
Pages | 86 | 78
Paginator pages | 2 | 2
Non-page files | 0 | 0
Static files | 82 | 82
Processed images | 0 | 0
Aliases | 34 | 30
Cleaned | 0 | 0

book-theme

@alex-shpak
Copy link
Owner

Hi!
As theme uses specific section configured here: https://github.com/alex-shpak/hugo-book/blob/master/exampleSite/hugo.toml#L73
to create navigation, you need to put your files into that folder, or reconfigure it to *

@wehrend
Copy link
Author

wehrend commented Jan 11, 2025

Hi Alex,
I've navigated my way through it, and created the following PR #674 ...
I hope you can maybe include it in your example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants