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

Language menu pointing to related pages rather than site root #397

Closed
rseabra opened this issue Nov 22, 2022 · 1 comment
Closed

Language menu pointing to related pages rather than site root #397

rseabra opened this issue Nov 22, 2022 · 1 comment

Comments

@rseabra
Copy link

rseabra commented Nov 22, 2022

I'm very new to hugo and go, so it's still hard to propose patches, but I think it would be nice on multi-lingual posts to have the menu point to the same page but in the other languages rather than to /WEBSITE/pt/ or /WEBSITE/en.

Eg...

EN: https://blog.1407.org/2022/11/02/teatro-e-urgente-o-amor/
Check menu, points English to /en/ and Português to /pt

It would be nice if en pointed to the current page and /pt to the portuguese version generated at...

PT: https://blog.1407.org/pt/2022/11/02/teatro-e-urgente-o-amor/

I suspect this won't be hard to do, I'm just not comfortable with go yet.

Is it possible (and easy) to do?

@rseabra
Copy link
Author

rseabra commented Dec 2, 2022

Hey, my PR #399 implements this. :)

@panr panr closed this as completed Aug 25, 2024
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