diff options
-rw-r--r-- | i18n/de.yml | 2 | ||||
-rw-r--r-- | i18n/en-shaw.yml | 2 | ||||
-rw-r--r-- | layouts/partials/header.html | 1 | ||||
-rw-r--r-- | layouts/partials/structured-data.html | 15 |
4 files changed, 20 insertions, 0 deletions
diff --git a/i18n/de.yml b/i18n/de.yml index 7113a7f..d2a5de1 100644 --- a/i18n/de.yml +++ b/i18n/de.yml @@ -22,6 +22,7 @@ match_found: _blank: " " about: รber mich author_by: Von +maybe_look: Vielleicht suchten Sie nach einem dieser Artikel? minute_read: "min Lesezeit" next: nรคchste no_match_found: "Kein Treffer gefunden" @@ -33,3 +34,4 @@ search_placeholder: "Geben Sie Ihre Suchbegriffe ein" search_request: "Bitte geben Sie ein Wort oder einen Satz oben ein" see_all: "alle anzeigen" translations: รbersetzungen +try_search: Nicht da? Versuchen Sie es auf der Suchseite. diff --git a/i18n/en-shaw.yml b/i18n/en-shaw.yml index c42630e..40b8abb 100644 --- a/i18n/en-shaw.yml +++ b/i18n/en-shaw.yml @@ -22,6 +22,7 @@ match_found: _blank: " " about: ๐ฉ๐๐ฌ๐ author_by: ๐๐ฒ +maybe_look: ๐๐ผ๐ฃ๐จ๐๐ ๐ฟ ๐ข๐ป ๐ค๐ซ๐๐ฆ๐ ๐ ๐ข๐ณ๐ฏ ๐ ๐๐ฐ๐? minute_read: "๐ฅ๐ฐ๐ฏ ๐ฎ๐ฐ๐" next: "๐ฏ๐ง๐๐๐" no_match_found: "๐ฏ๐ด ๐ฅ๐จ๐ ๐๐ฌ๐ฏ๐" @@ -33,3 +34,4 @@ search_placeholder: "๐ฎ๐ฒ๐ ๐๐น ๐๐ป๐ ๐๐ป๐ฅ๐" search_request: "๐๐ค๐ฐ๐ ๐ง๐ฏ๐๐ผ ๐ฉ ๐ข๐ป๐ ๐น ๐๐ฎ๐ฑ๐ ๐ฉ๐๐ณ๐" see_all: "๐๐ฐ ๐ท๐ค" translations: ๐๐ฎ๐จ๐ฏ๐๐ค๐ฑ๐๐ฉ๐ฏ๐ +try_search: ๐ฏ๐ช๐ ๐๐บ? ๐๐ฎ๐ฒ ๐ฟ๐๐ฆ๐ ๐ ๐๐ป๐ ๐๐ฑ๐ก. diff --git a/layouts/partials/header.html b/layouts/partials/header.html index f3c929a..fce67da 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -39,6 +39,7 @@ name="lang" class="mr-2 p-1 text-center border border-black-20 rounded-md bg-white text-black" onchange="self.location=options[selectedIndex].value" + aria-label="Page language" > <option value="{{ .Permalink }}"> {{ .Language.Lang }} diff --git a/layouts/partials/structured-data.html b/layouts/partials/structured-data.html index eb42277..8b59734 100644 --- a/layouts/partials/structured-data.html +++ b/layouts/partials/structured-data.html @@ -78,6 +78,21 @@ {{ end }} {{ end }} +{{ if .IsTranslated }} + {{ range .Translations }} + <link + rel="alternate" + hreflang="{{ .Language.Lang }}" + href="{{ .Permalink }}" + /> + {{ end }} + <link + rel="alternate" + hreflang="{{ .Language.Lang }}" + href="{{ .Permalink }}" + /> +{{ end }} + {{- /* If it is part of a series, link to related articles */}} {{- $permalink := .Permalink }} {{- $siteSeries := .Site.Taxonomies.series }} |