You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.
Workflow:
1- Create new project with jekyll new mysite
2- Add plugin following the docs and add 2 languages en and it
3-In the index.html page just add {{site.translations.size}} to display the languages supported -> Result: 0 - no languages supported?
-> Expected: 2
4- Create a translation file /_i18n/en/test.md and reference it in index.html as {% t test.md %} and fill it with some text -> Now {{site.translations.size}} = 1
5- Remove the text from test.md but leave it there -> Now {{site.translations.size}} is back to 0
6- same happens with the other languages
The text was updated successfully, but these errors were encountered:
giulioambrogi
changed the title
If no translation ({% t elem.md %}) is included in the page, then site.translations is empty object
site.translations is empty object when no translation reference (e.g. {% t elem.md %}) is included in the page
Oct 1, 2017
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Workflow:
1- Create new project with
jekyll new mysite
2- Add plugin following the docs and add 2 languages en and it
3-In the index.html page just add
{{site.translations.size}}
to display the languages supported-> Result: 0 - no languages supported?
-> Expected: 2
4- Create a translation file /_i18n/en/test.md and reference it in index.html as
{% t test.md %}
and fill it with some text-> Now
{{site.translations.size}}
= 15- Remove the text from test.md but leave it there
-> Now
{{site.translations.size}}
is back to 06- same happens with the other languages
The text was updated successfully, but these errors were encountered: