Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.76 KB

translations.md

File metadata and controls

45 lines (35 loc) · 1.76 KB
title description summary date lastmod draft weight toc seo
Translations
2024-03-13 19:39:06 +0100
2024-03-13 19:39:06 +0100
false
320
true
title description canonical robots

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

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

Generated meta tags

Hyas 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.

Hyas 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