tedcm
1
I have 2 languages, en and fil.
I have a shortcode in both of them that gets:
<ul>
<li>{{ .Params.pages }}</li>
<li>{{ .Params.year }}</li>
</ul>
Even though they have the same value, i usually update both of them.
How can I make the shortcode in the fil language get the param I give to the en language?
Thank you.
idarek
2
Yes,
[params]
pages = "text"
are global, shared between languages if you use: .Site.Params.pages
per language, each of them can have their own, like
[languages]
[languages.pl]
[languages.pl.params]
pages = "text"
tedcm
3
I’m afraid I can’t figure it out.
So if I have set a pages
param in a blog post in English language, how can I access that param to the Filipino language?
idarek
4
could you show your hugo.toml config file or best, full repo
tedcm
6
I’m afraid it’s a page param and not a site param. Thank you for you help.
tedcm
7
Thanks you.
Maybe I’ll try creating a data file to be shared between translations.