-
Notifications
You must be signed in to change notification settings - Fork 66
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
Alternates are not generated, and no docs for that functionality #41
Comments
Can confirm. i just stumbled into the same situation. Could you solve the issue? |
@nlappe |
@yuriizinets |
@nlappe Sorry, I'm not going to make a PR because I'm not so familiar with this codebase and project is not maintained, as I see now. I contacted with project owner without success. As a possible solution/workaround:
Final usage: // Alternates are []Attr (!!!)
sm.Add(stm.URL{{"loc", url}, {"xhtml:link", alternates}}) |
@yuriizinets Thanks for your Feedback. You can do something like It works like a Charme :) If you ever have to work with XML type data in go its a nice starting point. This approach also offers a bit more flexibility for future things. |
@nlappe used this package to avoid direct work with XML, but... 😄 |
I'm trying to handle language routes in my generator script.
Checked your sources and found that "alternates" keyword, so tried to do in that way:
It's not working at all, and I can't find any functionality in the code related to alternates generation.
The text was updated successfully, but these errors were encountered: