-
Notifications
You must be signed in to change notification settings - Fork 10
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
i18n support #7
Comments
Hello, thank you for your contribution! I'll look into asap! I understand, this is exactly why I left hugo+academic theme; I wanted something simple that I can maintain myself. Regards, |
Alternatively hold the merging for a while to see how these fixes work on my site. When and if I manage to migrate it. |
I just upload to http://pbeling.w8.pl/ my page after migration to zola with my fork of kodama. I've done much more changes than only i18n support in my fork of kodama https://github.com/beling/kodama-theme I'm still going to change the theme. I am seriously thinking about changes to the look. Thank you for your work. Please merge what you like from my changes. |
Hello, thank you for the update ! I'll look at what you did, and try to update my website to the new version. If it works without too many changes, I'll probably merge it. Is it still possible to completely ignore the i18n ? Or does it need to be setup even for mono-lang sites ? I should also update the readme to explain how to setup multiple language. I don't mind dropping tailwind, but I don't have any better alternative in mind. Here, I want to list few things that I had in mind doing this theme:
|
Note that I've changes some details in look, for example publications in summary.
You cannot completely ignore the i18n. You must have this in config.toml:
Which is required as I use https://www.getzola.org/documentation/templates/overview/#trans which crashes when cannot find the key.
I think that zola documentation is fine: https://www.getzola.org/documentation/content/multilingual/
I absolutely agree. For example, I don't need and don't have npm.
I'm thinking of writing the CSS by hand, using only some minimalist framework. See for example Base, Class-less, and Very Lightweight categories here: https://github.com/troxler/awesome-css-frameworks I think ultimately JS should possibly be included, but only conditionally (dependent on configuration) when the user needs maths (katex) or search. |
I've found the tool, that makes tailwind a bit better for me: https://github.com/pintariching/railwind |
Hello, I had to do some small change regarding the way we find translation to be able to have pages that are not translated. I did not make any progress on the tailwind/no tailwind for now, but I have a question from another user regarding the color of the site, so I might advance on that concern . Thanks again for your contribution ;) |
Great. Note that my patches add some more features, like table of content (enabled per page by extra.toc=true). |
Thanks, I will add the new features to the changelog. I am not sure to understand, you mean the behavior when:
I agree, that's confusing for visitors. I guess, a way to solve that would be to generate a page with content such as : "this page does not exist in this language (or something like this)". Idk if it is possible. Or, also a crossed-out link as you suggested (but I wanted to be able to change the language at any page so peoples that doesn't speak the current lang don't get lost). I'll work on that when I have a bit of time. |
Yes, this is exactly the scenario I meant. |
Hello,
I am trying to migrate my page from hugo + academic to zola + kodama.
My page is in two languages. That is why I'm work on adding i18n support (see https://www.getzola.org/documentation/content/multilingual/) to your template.
My fork is here: https://github.com/beling/kodama-theme
Must changes are in nav.html.
Basic support is already working and functional. Please feel free to merge it if you wish.
My fork should not change anything if the page is one language only.
My page, which still uses hugo+academic: http://pbeling.w8.pl/
(however it is partially broken after upgrading hugo and forced upgrading academic; that is why I migrate from academic; it requires too much work after each upgrade and becomes over-complicated)
Best regards and thank you for your great work!
Piotr Beling
The text was updated successfully, but these errors were encountered: