Translations

The rel HTML attribute defines the relationship between a linked resource and the current document. An alternate value indicates an alternate representation of the current document. With an hreflang attribute that differs from the document language, it indicates a translation.

Settings

You can set the defaultContentLanguage in config/_default/hugo.toml

hugo.toml
# Multilingual
defaultContentLanguage = "en"
disableLanguages = ["fr"]
defaultContentLanguageInSubdir = false

Generated meta tags

Thulite SEO uses IsTranslated to determine whether the given page has one or more translations and AllTranslations to return all translations of the given page, including the current language.

Thulite SEO generates the following meta tags (if applicable) — for example:

<link rel="alternate" hreflang="nl" href="https://getdoks.org/nl/docs/guides/example-guide/">
<link rel="alternate" hreflang="de" href="https://getdoks.org/de/docs/guides/example-guide/">
<link rel="alternate" hreflang="en" href="https://getdoks.org/docs/guides/example-guide/">
<link rel="alternate" hreflang="x-default" href="https://getdoks.org/docs/guides/example-guide/">

Resources