Hugo

Link Article in different languages

Hello,

how is it easy to reference the current article in different languages? I use different websites for the languages. So relref is not the solution. I thought of a reference in the headers, but is there a way to combine absLangURL and relref? For example?

I had the idea set the links in the header of the markdown files like:

---
de: url to de content
fr: url to fr content
ru: url to ru content
en: url to en content
---

Then use this in the layout file of aside.

Thank you
Silvio

Is your site using multilingual mode? If so, you can try to reference snippet at https://gohugo.io/content-management/multilingual/#reference-the-translated-content.

1 Like