-
Notifications
You must be signed in to change notification settings - Fork 61
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
Polyglot lacks something in the documentation to make it easy to use #205
Comments
The way I manage to do it is by adding permalink to the frontmatter
Thanks for the sentence there An example in the documentation could be valuable. Should I prepare one? It is just confusing to have a page and in the same time to have a permalink in the page and to have this permalink the same as the directory structure. I was expecting that polyglot will interfere this from the directory structure, however I might be wrong. |
It is confusing for example how I have this generated
When the bg/index.html is
and At the same time as lang_from_path is true I would expect that the language comes from the path, but jekyll generates _site/bg and inside of it generates _site/bg/bg Why would it do that? |
Hi @thebravoman, I had a similar experience. One thing that helped me was the config setting |
You can refer to my blog. I achieved this by modifying the theme. Replace all In a word, whenever you want to do something with the polyglot, you need to insert I found that Untra has already posted an article to explain this: https://polyglot.untra.io/2024/02/29/localized-variables/ |
I've been trying to get it working for more time that I would like to admin and it is still not working, the documentation seems to be confusing and unclear.
I have a simple job to be done. I would like to have an index page and to see this 1 index page in two languages.
Here is the three structure
That is simple enough. There is an index.html that has the following content
As a result we have _site/index.html and _site/bg/index.html
Both with the same content.
And now the question is how do I create a second version of the index.html that will have a different content, because that's the whole job to be done here.
The documentation just says "don't stress about it" but it gives little directions and explanations on how to do it. Like
So what we can do from this is create an index-bg.html. file looking at the example for _post. But this does not work.
So it is not an appending on the file name
We could try with a new bg folder with index.html in it and we get
I think the documentation could benefit from an example of how polyglot could be used. It is still not clear for me how to get same index.html page, two languages accomplished and I kind of stress about it, despite the documentation telling me not to stress about it :D
The text was updated successfully, but these errors were encountered: