Closed antoniovazquezblanco closed 6 months ago
This will need some readme words re: permalink_lang
frontmatter and how that should be used.
And add a test for this, please!
I have done a little bit of doc and testing. Feedback on how to improve is welcomed :D
Good docs and good test!
I'm seeing the appeal of this, but I also wonder if updating the existing {{ I18n_Headers }}
plugin to better support the permalink_lang
and recognize when in a page_id
is set.
this logic is remarkably similar to https://github.com/untra/polyglot/blob/master/lib/jekyll/polyglot/liquid/tags/i18n_headers.rb#L19-L25 And I'm thinking this tag needs an update with this work.
btw you don't need to update that liquid tag as part of this PR, but also I'm not looking to cut another polyglot release too soon. These changes look good though, thanks for your help @antoniovazquezblanco !
I will update the I18n_Headers
tag 👍
The permalink_lang
property is still useful for navigation in my case...
Done! :D
Happy new year!
Now that it is public, I would like to tell you that this functionality, although not released is in use at https://github.com/TarlogicSecurity/BSAM.
:)
glad to see it! and great use of rich text and the language switcher on the website! I'm glad this plugin can be so helpful to your multi-language presence. And Thanks again for this contribution!
I believe the changes for 1.7.0 have soaked enough. Approved. 1.7.1 in progress.
🔤 Polyglot PR
Adding other lang permalinks to a page may allow the user to generate direct links to translations without redirects. I think that SEO focused sites may benefit from this! :D
Let me know what you think and if how could I improve this!
Type of change
Checklists