Skip to content

Commit a9d6f27

Browse files
authored
rev 1.9.0 version, readme touchups, blogpost (#231)
* rev 1.9.0 version, readme touchups, blogpost * seo descriptions, bundle gemfile * commit the built site changes to master branch
1 parent c2053b1 commit a9d6f27

File tree

357 files changed

+16391
-33718
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

357 files changed

+16391
-33718
lines changed

Gemfile.lock

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
jekyll-polyglot (1.8.1)
4+
jekyll-polyglot (1.9.0)
55
jekyll (>= 4.0, >= 3.0)
66

77
GEM
@@ -57,7 +57,7 @@ GEM
5757
sass-embedded (~> 1.54)
5858
jekyll-watch (2.2.1)
5959
listen (~> 3.0)
60-
json (2.7.2)
60+
json (2.9.1)
6161
kramdown (2.4.0)
6262
rexml
6363
kramdown-parser-gfm (1.1.0)
@@ -78,7 +78,7 @@ GEM
7878
nokogiri (1.16.5-x86_64-darwin)
7979
racc (~> 1.4)
8080
parallel (1.26.3)
81-
parser (3.3.4.2)
81+
parser (3.3.7.0)
8282
ast (~> 2.4.1)
8383
racc
8484
pathutil (0.16.2)
@@ -90,7 +90,7 @@ GEM
9090
rb-fsevent (0.11.2)
9191
rb-inotify (0.11.1)
9292
ffi (~> 1.0)
93-
regexp_parser (2.9.2)
93+
regexp_parser (2.10.0)
9494
rexml (3.3.9)
9595
rouge (4.2.1)
9696
rspec (3.13.0)
@@ -108,18 +108,17 @@ GEM
108108
rspec-support (3.13.1)
109109
rspec_junit_formatter (0.6.0)
110110
rspec-core (>= 2, < 4, != 2.12.0)
111-
rubocop (1.65.1)
111+
rubocop (1.70.0)
112112
json (~> 2.3)
113113
language_server-protocol (>= 3.17.0)
114114
parallel (~> 1.10)
115115
parser (>= 3.3.0.2)
116116
rainbow (>= 2.2.2, < 4.0)
117-
regexp_parser (>= 2.4, < 3.0)
118-
rexml (>= 3.2.5, < 4.0)
119-
rubocop-ast (>= 1.31.1, < 2.0)
117+
regexp_parser (>= 2.9.3, < 3.0)
118+
rubocop-ast (>= 1.36.2, < 2.0)
120119
ruby-progressbar (~> 1.7)
121-
unicode-display_width (>= 2.4.0, < 3.0)
122-
rubocop-ast (1.32.0)
120+
unicode-display_width (>= 2.4.0, < 4.0)
121+
rubocop-ast (1.37.0)
123122
parser (>= 3.3.1.0)
124123
ruby-progressbar (1.13.0)
125124
safe_yaml (1.0.5)
@@ -151,7 +150,7 @@ DEPENDENCIES
151150
rspec (>= 3.11.0)
152151
rspec-mocks (>= 3.11.0)
153152
rspec_junit_formatter (>= 0.6.0)
154-
rubocop (>= 1.65.0)
153+
rubocop (>= 1.66.0)
155154
webrick (>= 1.8.2)
156155

157156
BUNDLED WITH

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ This plugin stands out from other I18n Jekyll plugins.
261261
- provides the liquid tag `{{ site.languages }}` to get an array of your I18n strings.
262262
- provides the liquid tag `{{ site.default_lang }}` to get the default_lang I18n string.
263263
- provides the liquid tag `{{ site.active_lang }}` to get the I18n language string the website was built for. Alternative names for `active_lang` can be configured via `config.lang_vars`.
264-
- provides the liquid tag `{{ I18n_Headers https://yourwebsite.com/ }}` to append SEO bonuses to your website.
264+
- provides the liquid tag `{{ I18n_Headers }}` to append SEO bonuses to your website.
265265
- provides the liquid tag `{{ Unrelativized_Link href="/hello" }}` to make urls that do not get influenced by url correction regexes.
266266
- provides `site.data` localization for efficient rich text replacement.
267267
- a creator that will answer all of your questions and issues.
@@ -278,16 +278,7 @@ The [official Sitemap protocol documentation](https://www.sitemaps.org/protocol.
278278

279279
> "It is strongly recommended that you place your Sitemap at the root directory of your web server."
280280

281-
To comply with this, 'sitemap.xml' should be added to the 'exclude_from_localization' list to ensure that only one `sitemap.xml` file exists in the root directory, rather than creating separate ones for each language, as shown in the incorrect example below.
282-
>
283-
> Incorrect example (the content of each file is identical, not different for each language):
284-
> - `/sitemap.xml`
285-
> - `/ko/sitemap.xml`
286-
> - `/es/sitemap.xml`
287-
> - `/pt-BR/sitemap.xml`
288-
> - `/ja/sitemap.xml`
289-
> - `/fr/sitemap.xml`
290-
> - `/de/sitemap.xml`
281+
To comply with this, 'sitemap.xml' should be added to the 'exclude_from_localization' list to ensure that only one `sitemap.xml` file exists in the root directory, rather than creating separate ones for each language.
291282

292283
## Compatibility
293284
Currently supports Jekyll 3.0 , and Jekyll 4.0
@@ -308,6 +299,7 @@ If you have something you'd like to contribute to jekyll-polyglot, please open a
308299
These are talented and considerate software developers across the world that have lent their support to this project.
309300
**Thank You! ¡Gracias! Merci! Danke! 감사합니다! תודה רבה! Спасибо! Dankjewel! 谢谢!Obrigado!**
310301

302+
* [@yunseo-kim](https://github.com/yunseo-kim) [improved i18n sitemaps]((https://polyglot.untra.io/2025/01/18/polyglot-1.9.0/))
311303
* [@blackpill](https://github.com/blackpill) [1.8.1](https://polyglot.untra.io/2024/08/18/polyglot-1.8.1/)
312304
* [@hacketiwack](https://github.com/hacketiwack) [1.8.1](https://polyglot.untra.io/2024/08/18/polyglot-1.8.1/)
313305
* [@jerturowetz](https://github.com/jerturowetz) [sitemap generation](https://polyglot.untra.io/2024/03/17/polyglot-1.8.0/)
@@ -353,4 +345,4 @@ Feel free to open a PR and list your multilingual blog here you may want to shar
353345
* [x] - update CI provider
354346

355347
## Copyright
356-
Copyright (c) Samuel Volin 2023. License: MIT
348+
Copyright (c) Samuel Volin 2025. License: MIT

jekyll-polyglot.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Gem::Specification.new do |s|
22
s.name = 'jekyll-polyglot'
3-
s.version = '1.8.1'
4-
s.date = '2024-08-18'
3+
s.version = '1.9.0'
4+
s.date = '2025-01-18'
55
s.summary = 'I18n plugin for Jekyll Blogs'
66
s.description = 'Fast open source i18n plugin for Jekyll blogs.'
77
s.authors = ['Samuel Volin']

make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@echo off
2-
set VERSION="1.8.1"
2+
set VERSION="1.9.0"
33
REM this is running tests
44
CALL gem build jekyll-polyglot.gemspec
55
CALL gem install jekyll-polyglot-%VERSION%.gem

make.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
VERSION="1.8.1"
2+
VERSION="1.9.0"
33
# this is running tests
44
gem build jekyll-polyglot.gemspec
55
gem install jekyll-polyglot-$VERSION.gem

site/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ description:
9292

9393
paginate: 5
9494
# Custom vars
95-
version: 1.8.1
95+
version: 1.9.0
9696
# practical values langsep are "|", "•", "·", "-", "–"
9797
langsep: ""
9898

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: post
3+
title: Polyglot 1.9.0 - Instructional Improvements
4+
lang: en
5+
description: Jekyll Polyglot 1.9.0 release, with instructional improvements for better SEO for multi language websites.
6+
---
7+
8+
Jekyll-Polyglot 1.9.0 has been released, which has minor dependency updates, and instructional improvements for getting the most from your multi-language website.
9+
10+
## Community provided instructional improvements
11+
12+
Thank you to **[aturret](https://github.com/aturret)** for helping to maintain the existing `zh-CN` site pages. 谢谢!
13+
14+
**[george-gca](https://github.com/george-gca)** improved the optional `derive_lang_from_path` configuration to better identify document language from the path inference. Tests were added for his helpful [feature improvement PR](https://github.com/untra/polyglot/pull/222). This improvement helps infer the language of posts and pages missing `lang` frontmatter, from any part of the document filepath.
15+
16+
Github user **[yunseo-kim](https://github.com/yunseo-kim)** submitted a [instructions to improve sitemap generation](https://github.com/untra/polyglot/pull/230) . To help with SEO, a website should have only one root sitemap.xml , and not have duplicates for each sub-language site. Be sure to add the `sitemap.xml` to the `exclude_from_localization` configuration.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: post
3+
title: Polyglot 1.9.0 - Melhorias Instrucionais
4+
lang: pt-BR
5+
description: jekyll-polyglot lançamento 1.9.0, con melhorias instrucionais para melhor SEO para sites multilíngues.
6+
---
7+
8+
Jekyll-Polyglot 1.9.0 foi lançado, que possui pequenas atualizações de dependência e melhorias instrucionais para obter o máximo do seu site multilíngue.
9+
10+
## Melhorias instrucionais fornecidas pela comunidade
11+
12+
Obrigado a **[aturret](https://github.com/aturret)** por ajudar a manter as páginas do site chinês (zh-CN) existentes. 谢谢!
13+
14+
**[george-gca](https://github.com/george-gca)** aprimorou a configuração opcional `derive_lang_from_path` para melhor identificar o idioma do documento a partir da inferência do caminho. Testes foram adicionados para seu útil [PR de melhoria de recurso](https://github.com/untra/polyglot/pull/222). Essa melhoria ajuda a inferir o idioma de posts e páginas sem frontmatter `lang`, de qualquer parte do caminho do arquivo do documento.
15+
16+
O usuário do Github **[yunseo-kim](https://github.com/yunseo-kim)** enviou [instruções para melhorar a geração de sitemap](https://github.com/untra/polyglot/pull/230). Para ajudar no SEO, um site deve ter apenas um sitemap.xml raiz, e não duplicatas para cada site de sub-linguagem. Certifique-se de adicionar `sitemap.xml` à configuração `exclude_from_localization`.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: post
3+
title: Polyglot 1.8.1 - 指令改进
4+
lang: zh-CN
5+
description: Jekyll Polyglot 1.9.0 版本发布,并对指令进行了改进,以提高多语言网站的 SEO。
6+
---
7+
8+
Jekyll-Polyglot 1.9.0 发布了,它包含了一些小的依赖项更新,以及改进的指令,帮助您充分利用您的多语言网站。
9+
10+
## 社区提供的教学改进
11+
12+
感谢 **[aturret](https://github.com/aturret)** 帮助维护现有的中文 (zh-CN) 网站页面。 谢谢!
13+
14+
**[george-gca](https://github.com/george-gca)** 改进了可选的 `derive_lang_from_path` 配置,以便更好地从路径推断中识别文档语言。 为他的实用 [功能改进 PR](https://github.com/untra/polyglot/pull/222) 添加了测试。 此改进有助于推断缺少 `lang` frontmatter 的帖子和页面的语言,这些语言来自文档文件路径的任何部分。
15+
16+
Github 用户 **[yunseo-kim](https://github.com/yunseo-kim)** 提交了 [改善站点地图生成的说明](https://github.com/untra/polyglot/pull/230)。 为了帮助 SEO,网站应该只有一个根目录 sitemap.xml,而不是每个子语言站点都应该有一个副本。 请务必将 `sitemap.xml` 添加到 `exclude_from_localization` 配置中。

site/_site/2012/02/06/whats-jekyll/index.html

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
<html lang="en-us">
33

44
<head>
5+
56
<link href="http://gmpg.org/xfn/11" rel="profile">
67
<meta http-equiv="X-UA-Compatible" content="IE=edge">
78
<meta http-equiv="content-type" content="text/html; charset=utf-8">
8-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
9+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
10+
<meta name="title" content="What's Jekyll? &middot; Polyglot">
11+
<meta name="description" content="A i18n support plugin for Jekyll that makes multi-language support fast and intuitive, for blogs big and small.">
12+
<meta name="keywords" content="multilingual, i18n, jekyll, polyglot, fast, intuitive, untra, github, pages, blog, plugin, ruby, gem, internationalization, localization, translation, language, support, multi-language, multi-lingual">
913
<meta http-equiv="Content-Language" content="en">
10-
<link rel="alternate" hreflang="en" href="https://polyglot.untra.io"/>
14+
<link rel="alternate" hreflang="en" href="https://polyglot.untra.io/"/>
1115
<link rel="alternate" hreflang="es" href="https://polyglot.untra.io/es/"/>
1216
<link rel="alternate" hreflang="de" href="https://polyglot.untra.io/de/"/>
1317
<link rel="alternate" hreflang="fr" href="https://polyglot.untra.io/fr/"/>
@@ -145,6 +149,8 @@ <h1>
145149

146150

147151

152+
153+
148154

149155

150156

@@ -153,10 +159,10 @@ <h1>
153159
<a class="sidebar-nav-item" href="https://rubygems.org/gems/jekyll-polyglot">Ruby Gem</a>
154160
<a class="sidebar-nav-item" href="https://github.com/untra/polyglot">GitHub project</a>
155161
<a class="sidebar-nav-item" href="https://github.com/untra/polyglot/tree/master/site/_posts/2012-02-06-whats-jekyll.md"><small>view this page source on github</small></a>
156-
<small class="sidebar-nav-item">Currently v1.8.0</small>
162+
<small class="sidebar-nav-item">Currently v1.9.0</small>
157163
</nav>
158164

159-
<p><small>&copy; 2024 Samuel Volin</small><br/><small>MIT Licensed</small></p>
165+
<p><small>&copy; 2025 Samuel Volin</small><br/><small>MIT Licensed</small></p>
160166
<p>
161167
<!-- jekyll-polyglot will process ferh= into href= through the static_href liquid block tag without relativizing the url; useful for making language navigation switchers -->
162168

@@ -197,27 +203,27 @@ <h2>Related Posts</h2>
197203

198204
<li>
199205
<h3>
200-
<a href="/2024/03/17/polyglot-1.8.0/">
201-
Polyglot 1.8.0 - Community Contributions Release
202-
<small>17 Mar 2024</small>
206+
<a href="/2025/01/18/polyglot-1.9.0/">
207+
Polyglot 1.9.0 - Instructional Improvements
208+
<small>18 Jan 2025</small>
203209
</a>
204210
</h3>
205211
</li>
206212

207213
<li>
208214
<h3>
209-
<a href="/2024/02/29/localized-variables/">
210-
Localized variables
211-
<small>29 Feb 2024</small>
215+
<a href="/2024/08/18/polyglot-1.8.1/">
216+
Polyglot 1.8.1 - Community Bug Fixes Release
217+
<small>18 Aug 2024</small>
212218
</a>
213219
</h3>
214220
</li>
215221

216222
<li>
217223
<h3>
218-
<a href="/2023/10/29/polyglot-1.7.0/">
219-
Polyglot 1.7.0 and page_id front-matter for different permalinks by language
220-
<small>29 Oct 2023</small>
224+
<a href="/2024/03/17/polyglot-1.8.0/">
225+
Polyglot 1.8.0 - Community Contributions Release
226+
<small>17 Mar 2024</small>
221227
</a>
222228
</h3>
223229
</li>

0 commit comments

Comments
 (0)