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

"Get Started" button always navigate to english version page #97

Closed
codehz opened this issue Jan 13, 2021 · 2 comments
Closed

"Get Started" button always navigate to english version page #97

codehz opened this issue Jan 13, 2021 · 2 comments

Comments

@codehz
Copy link
Contributor

codehz commented Jan 13, 2021

I'm trying to add new translation for www.ziglang.org, but I found the Get Started button is always lead me to the English version of the page.
I am not familiar with hugo, I don’t know how to implement language redirection..

@kristoff-it
Copy link
Member

Hi @codehz, I just pushed a change that now allows you to specify the language version of getting-started.md you want to link to. I'm not immediately defaulting to the current language to allow people to work on a getting-started translation in a second moment and link to the english version momentarily, which also happens to be the current state of the Italian translation made by me :)

Here's how to do it:

{{< slogan get_started="INIZIA QUI" docs="Documentazione" notes="Note" lang="it">}}
...

@codehz
Copy link
Contributor Author

codehz commented Jan 13, 2021

Thanks, I think it is working

@codehz codehz closed this as completed Jan 13, 2021
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