Skip to content

Commit c2053b1

Browse files
authored
Site SEO updates (#228)
* seo improvements, coordination of details in the config * improve the seo instructional pages
1 parent 4847af4 commit c2053b1

17 files changed

+157
-55
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ When adding new posts and pages, add to the YAML front matter:
4747
```
4848
lang: sv
4949
```
50-
or whatever appropriate [I18n language code](https://developer.chrome.com/webstore/i18n)
50+
or whatever appropriate [I18n language code](https://developer.chrome.com/docs/extensions/reference/api/i18n#locales)
5151
the page should build for. And you're done. Ideally, when designing your site, you should
5252
organize files by their relative urls.
5353

site/_config.yml

Lines changed: 54 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Polyglot
2+
languages: ["en", "es", "de", "fr", "ru", "nl", "he", "ko", "zh-CN", "pt-BR"]
3+
default_lang: "en"
4+
exclude_from_localization: ["javascript", "images", "css", "public", "sitemap"]
5+
parallel_localization: false
6+
url: https://polyglot.untra.io
7+
18
# Where things are
29
source: .
310
destination: ./_site
@@ -24,18 +31,6 @@ author:
2431
# google analytics
2532
ga_tag: G-HWC3D32MT8
2633

27-
# data
28-
hello:
29-
en: Hello!
30-
es: ¡hola!
31-
fr: Bonjour!
32-
de: Hallo!
33-
ru: Привет!
34-
nl: Hallo!
35-
he: "שלום!"
36-
ko: 안녕하세요!
37-
zh-CN: 你好!
38-
pt-BR: Olá!
3934

4035
plugins: [jekyll-polyglot, jekyll-paginate, jekyll-redirect-from]
4136
# Permalinks
@@ -46,19 +41,54 @@ exclude: ['LICENSE.md', 'README.md', 'publi.sh', 'Gemfile.lock', 'Gemfile']
4641
# Setup
4742
title: Polyglot
4843
tagline: 'Straightforward I18n for Jekyll Blogs'
49-
description:
50-
zh-CN: 一款为 <a href="http://jekyllrb.com" target="_blank">Jekyll</a> 提供 i18n 多语言功能的插件,方便快捷,适用于各类大小博客。<a href="https://github.com/untra" target="_blank">@untra</a> 出品。
51-
ko: <a href="https://github.com/untra" target="_blank">@untra</a>가 만든, 크고 작은 블로그 모두가 빠르고 직관적인 다국어 지원을 가능케 하는 i18n 지원 <a href="http://jekyllrb.com" target="_blank">Jekyll</a> 플러그인.
52-
he: תוסף תמיכה ב-i18n עבור <a href="http://jekyllrb.com" target="_blank">Jekyll</a> שהופך את התמיכה מרובת שפות למהירה ואינטואיטיבית, עבור בלוגים גדולים וקטנים. תוצרת <a href="https://github.com/untra" target="_blank">@untra</a>.
53-
nl: Een plug-in voor internationlisering van <a href="http://jekyllrb.com" target="_blank">Jekyll</a> die meertalige ondersteuning snel en intuïtief maakt, voor blogs groot en klein. Gemaakt door <a href="https://github.com/untra" target="_blank">@untra</a>.
54-
ru: Плагин поддержки i18n для <a href="http://jekyllrb.com" target="_blank">Jekyll</a> что делает поддержку нескольких языков быстрой и интуитивно понятной, для больших и маленьких блогов. Сделано в <a href="https://github.com/untra" target="_blank">@untra</a>.
55-
de: Ein sprachunterstützung plugin für <a href="http://jekyllrb.com" target="_blank">Jekyll</a>, die Unterstützung der Internationalisierung schnell und intuitiv macht, für Blogs groß und klein. Hergestellt von <a href="https://github.com/untra" target="_blank">@untra</a>.
56-
es: Un plugin soporte de i18n para <a href="http://jekyllrb.com" target="_blank">Jekyll</a> que hace soporte de internacionalización rápida e intuitiva, para los blogs grandes y pequeños. Hecho por <a href="https://github.com/untra" target="_blank">@untra</a>.
57-
fr: Un plugin de support de i18n pour <a href="http://jekyllrb.com" target="_blank">Jekyll</a> qui fait support de l'internationalisation rapide et intuitive, pour tous les blogs. Réalisé par <a href="https://github.com/untra" target="_blank">@untra</a>.
58-
en: A i18n support plugin for <a href="http://jekyllrb.com" target="_blank">Jekyll</a> that makes multi-language support fast and intuitive, for blogs big and small. Made by <a href="https://github.com/untra" target="_blank">@untra</a>.
59-
pt-BR: Um plugin de suporte i18n para <a href="http://jekyllrb.com" target="_blank">Jekyll</a> que torna o suporte a vários idiomas rápido e intuitivo, para blogs grandes e pequenos. Feito por <a href="https://github.com/untra" target="_blank">@untra</a>.
6044

61-
url: https://polyglot.untra.io
45+
# data
46+
sidebar:
47+
hello:
48+
en: Hello!
49+
es: ¡hola!
50+
fr: Bonjour!
51+
de: Hallo!
52+
ru: Привет!
53+
nl: Hallo!
54+
he: "שלום!"
55+
ko: 안녕하세요!
56+
zh-CN: 你好!
57+
pt-BR: Olá!
58+
description:
59+
zh-CN: 一款为 <a href="http://jekyllrb.com" target="_blank">Jekyll</a> 提供 i18n 多语言功能的插件,方便快捷,适用于各类大小博客。<a href="https://github.com/untra" target="_blank">@untra</a> 出品。
60+
ko: <a href="https://github.com/untra" target="_blank">@untra</a>가 만든, 크고 작은 블로그 모두가 빠르고 직관적인 다국어 지원을 가능케 하는 i18n 지원 <a href="http://jekyllrb.com" target="_blank">Jekyll</a> 플러그인.
61+
he: תוסף תמיכה ב-i18n עבור <a href="http://jekyllrb.com" target="_blank">Jekyll</a> שהופך את התמיכה מרובת שפות למהירה ואינטואיטיבית, עבור בלוגים גדולים וקטנים. תוצרת <a href="https://github.com/untra" target="_blank">@untra</a>.
62+
nl: Een plug-in voor internationlisering van <a href="http://jekyllrb.com" target="_blank">Jekyll</a> die meertalige ondersteuning snel en intuïtief maakt, voor blogs groot en klein. Gemaakt door <a href="https://github.com/untra" target="_blank">@untra</a>.
63+
ru: Плагин поддержки i18n для <a href="http://jekyllrb.com" target="_blank">Jekyll</a> что делает поддержку нескольких языков быстрой и интуитивно понятной, для больших и маленьких блогов. Сделано в <a href="https://github.com/untra" target="_blank">@untra</a>.
64+
de: Ein sprachunterstützung plugin für <a href="http://jekyllrb.com" target="_blank">Jekyll</a>, die Unterstützung der Internationalisierung schnell und intuitiv macht, für Blogs groß und klein. Hergestellt von <a href="https://github.com/untra" target="_blank">@untra</a>.
65+
es: Un plugin soporte de i18n para <a href="http://jekyllrb.com" target="_blank">Jekyll</a> que hace soporte de internacionalización rápida e intuitiva, para los blogs grandes y pequeños. Hecho por <a href="https://github.com/untra" target="_blank">@untra</a>.
66+
fr: Un plugin de support de i18n pour <a href="http://jekyllrb.com" target="_blank">Jekyll</a> qui fait support de l'internationalisation rapide et intuitive, pour tous les blogs. Réalisé par <a href="https://github.com/untra" target="_blank">@untra</a>.
67+
en: A i18n support plugin for <a href="http://jekyllrb.com" target="_blank">Jekyll</a> that makes multi-language support fast and intuitive, for blogs big and small. Made by <a href="https://github.com/untra" target="_blank">@untra</a>.
68+
pt-BR: Um plugin de suporte i18n para <a href="http://jekyllrb.com" target="_blank">Jekyll</a> que torna o suporte a vários idiomas rápido e intuitivo, para blogs grandes e pequenos. Feito por <a href="https://github.com/untra" target="_blank">@untra</a>.
69+
70+
keywords:
71+
en: multilingual, i18n, jekyll, polyglot, fast, intuitive, untra, github, pages, blog, plugin, ruby, gem, internationalization, localization, translation, language, support, multi-language, multi-lingual
72+
ko: 다국어, i18n, 제킬, 다국어, 빠른, 직관적인, untra, 깃허브, 페이지, 블로그, 플러그인, 루비, 젬, 국제화, 현지화, 번역, 언어, 지원, 다국어, 다국어
73+
he: רב-לשוני, i18n, ג'קיל, רב-לשוני, מהיר, אינטואיטיבי, untra, גיטהאב, דפים, בלוג, תוסף, רובי, ג'ם, בינלאומיות, לוקליזציה, תרגום, שפה, תמיכה, רב-לשוני, רב-לשוני
74+
nl: meertalig, i18n, jekyll, meertalig, snel, intuïtief, untra, github, pagina's, blog, plugin, ruby, gem, internationalisering, lokalisatie, vertaling, taal, ondersteuning, meertalig, meertalig
75+
ru: многоязычный, i18n, джекилл, полиглот, быстрый, интуитивный, untra, гитхаб, страницы, блог, плагин, рубин, гем, интернационализация, локализация, перевод, язык, поддержка, многоязычный, многоязычный
76+
de: mehrsprachig, i18n, jekyll, polyglot, schnell, intuitiv, untra, github, seiten, blog, plugin, ruby, gem, internationalisierung, lokalisierung, übersetzung, sprache, unterstützung, mehrsprachig, mehrsprachig
77+
es: multilingüe, i18n, jekyll, políglota, rápido, intuitivo, untra, github, páginas, blog, plugin, ruby, gem, internacionalización, localización, traducción, idioma, soporte, multilingüe, multilingüe
78+
fr: multilingue, i18n, jekyll, polyglotte, rapide, intuitif, untra, github, pages, blog, plugin, ruby, gem, internationalisation, localisation, traduction, langue, support, multilingue, multilingue
79+
pt-BR: multilíngue, i18n, jekyll, políglota, rápido, intuitivo, untra, github, páginas, blog, plugin, ruby, gem, internacionalização, localização, tradução, idioma, suporte, multilíngue, multilíngue
80+
zh-CN: 多语言, i18n, 杰基尔, 多语种, 快速, 直观, untra, 깃허브, 页面, 博客, 插件, 卢比, gem, 国际化, 本地化, 翻译, 语言, 支持, 多语言, 多语言
81+
description:
82+
zh-CN: 一款为 Jekyll 提供 i18n 多语言功能的插件,方便快捷,适用于各类大小博客
83+
ko: 크고 작은 블로그 모두가 빠르고 직관적인 다국어 지원을 가능케 하는 i18n 지원 Jekyll 플러그인.
84+
he: תוסף תמיכה ב-i18n עבור Jekyll שהופך את התמיכה מרובת שפות למהירה ואינטואיטיבית, עבור בלוגים גדולים וקטנים. תוצרת.
85+
nl: Een plug-in voor internationlisering van Jekyll die meertalige ondersteuning snel en intuïtief maakt, voor blogs groot en klein.
86+
ru: Плагин поддержки i18n для Jekyll что делает поддержку нескольких языков быстрой и интуитивно понятной, для больших и маленьких блогов.
87+
de: Ein sprachunterstützung plugin für Jekyll, die Unterstützung der Internationalisierung schnell und intuitiv macht, für Blogs groß und klein.
88+
es: Un plugin soporte de i18n para Jekyll que hace soporte de internacionalización rápida e intuitiva, para los blogs grandes y pequeños.
89+
fr: Un plugin de support de i18n pour Jekyll qui fait support de l'internationalisation rapide et intuitive, pour tous les blogs.
90+
en: A i18n support plugin for Jekyll that makes multi-language support fast and intuitive, for blogs big and small.
91+
pt-BR: Um plugin de suporte i18n para Jekyll que torna o suporte a vários idiomas rápido e intuitivo, para blogs grandes e pequenos.
6292

6393
paginate: 5
6494
# Custom vars
@@ -69,10 +99,5 @@ langsep: "•"
6999
github:
70100
repo: https://github.com/untra/polyglot
71101

72-
#Polyglot
73-
languages: ["en", "es", "de", "fr", "ru", "nl", "he", "ko", "zh-CN", "pt-BR"]
74-
default_lang: "en"
75-
exclude_from_localization: ["javascript", "images", "css", "public", "sitemap"]
76-
parallel_localization: false
77102
whitelist:
78103
- jekyll-redirect-from

site/_includes/head.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
<head>
2+
{% assign lang = site.active_lang %}
23
<link href="http://gmpg.org/xfn/11" rel="profile">
34
<meta http-equiv="X-UA-Compatible" content="IE=edge">
45
<meta http-equiv="content-type" content="text/html; charset=utf-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<meta name="title" content="{{ page.title }} &middot; {{ site.title }}">
8+
<meta name="description" content="{{ page.description | default: site.description[site.active_lang] }}">
9+
<meta name="keywords" content="{{ page.keywords | default: site.keywords[site.active_lang] }}">
610
{% I18n_Headers %}
711
<title>
812
{% if page.title == "Home" %}

site/_includes/sidebar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<div class="sidebar">
33
<div class="container sidebar-sticky">
44
<div class="sidebar-about">
5-
<p class="speech">{{ site.hello[site.active_lang]}}</p>
5+
<p class="speech">{{ site.sidebar.hello[site.active_lang] }}</p>
66
</br>
77
<h1>
88
<a href="{{ site.baseurl }}">
99
{{ site.title }}
1010
</a>
1111
</h1>
12-
<p class="lead">{{ site.description[lang] }}</p>
12+
<p class="lead">{{ site.sidebar.description[site.active_lang] }}</p>
1313
</div>
1414

1515
<nav class="sidebar-nav">

site/complex-permalink-he.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: קישור קבוע ממש ארוך
44
permalink: a-really-long-hebrew/permalink/
55
lang: he
66
page_id: complex-permalink
7+
description: דף זה מדגים כיצד Jekyll Polyglot יכול ליצור ולתחזק קישורים קבועים מותאמים אישית תוך שמירה על מבנה האתר.
78
---
89

910
הקישור הקבוע הזה באמת ארוך ומורכב

site/complex-permalink.de.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: Eine wirklich lange permalink
44
permalink: eine-wirklich-lange/permalink/
55
lang: de
66
page_id: complex-permalink
7+
description: diese Seite zeigt, wie jekyll polyglot benutzerdefinierte permanente Links erstellen und verwalten kann, während die Site-Struktur beibehalten wird.
78
---
89

910
Permalink ist wirklich lang und komplex.

site/complex-permalink.en.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: A really long permalink
44
permalink: a-really-long/permalink/
55
lang: en
66
page_id: complex-permalink
7+
description: this page demonstrates how jekyll polyglot can create and maintain customized permalinks while retaining site structure.
78
---
89

910
This permalink is really long and complex.

site/complex-permalink.es.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: Un muy largo permalink
44
permalink: una-muy-larga/permalink/
55
lang: es
66
page_id: complex-permalink
7+
description: esta página demuestra cómo jekyll polyglot puede crear y mantener enlaces permanentes personalizados mientras se mantiene la estructura del sitio.
78
---
89

910
Este enlace permanente es muy largo y complejo.

site/complex-permalink.fr.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: Un très long permalink
44
permalink: un-tres-long/permalink/
55
lang: fr
66
page_id: complex-permalink
7+
description: cette page démontre comment jekyll polyglot peut créer et maintenir des liens permanents personnalisés tout en conservant la structure du site.
78
---
89

910
Ce permalien est vraiment long et complexe.

site/complex-permalink.ko.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ title: 매우 긴 퍼마링크
44
permalink: a-really-long-korean/permalink/
55
lang: ko
66
page_id: complex-permalink
7+
description: 이 페이지는 Jekyll Polyglot가 사이트 구조를 유지하면서 사용자 정의된 영구 링크를 만들고 유지 관리하는 방법
78
---
89

910
이 퍼마링크는 매우 길고 복잡합니다

0 commit comments

Comments
 (0)