You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Sun Oct 29 17:52:29 MDT 2023
* readme updates and sitemap generation. More word prep.
* added raw tags help with rendering
* Mon Mar 4 08:57:59 MST 2024
* updates to subprocess testing, obfusk site additions
* v1.8.0 prep
* posts for v1.8.0
* update lockfile
* commit updated website
Copy file name to clipboardExpand all lines: README.md
+44-18Lines changed: 44 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,10 +69,10 @@ In short:
69
69
70
70
71
71
### Translation permalink information in page
72
-
_New in 1.7.1_
72
+
_New in 1.8.0_
73
73
74
74
Whenever `page_id` frontmatter properties are used to identify translations, permalink information for the available languages is available in `permalink_lang`.
75
-
This is useful in order to generate language menus and even localization meta information without redirections!
75
+
This is useful in order to generate language menus and even localization meta information without redirects!
76
76
77
77
Sample code for meta link generation:
78
78
```
@@ -177,8 +177,7 @@ Combine with a [html minifier](https://github.com/digitalsparky/jekyll-minifier)
177
177
### Exclusive site language generation
178
178
_New in 1.4.0_
179
179
180
-
If you want to control which languages a document can be generated for, you can specify `lang-exclusive: [ ]` frontmatter.
181
-
If you include this frontmatter in your post, it will only generate for the specified site languages.
180
+
If you want to control which languages a document can be generated for, you can specify `lang-exclusive: [ ]` frontmatter. If you include this frontmatter in your post, it will only generate for the specified site languages.
182
181
183
182
For Example, the following frontmatter will only generate in the `en` and `fr` site language builds:
184
183
```
@@ -234,6 +233,16 @@ This plugin makes modifications to existing Jekyll classes and modules, namely `
234
233
235
234
`Jekyll::Site.process`is the entry point for the Jekyll build process. Take care whatever other plugins you use do not also attempt to overwrite this method. You may have problems.
236
235
236
+
### (:polyglot, :post_write) hook
237
+
_New in 1.8.0_
238
+
Polyglot issues a `:polyglot, :post_write` hook event once all languages have been built for the site. This hook runs exactly once, after all site languages been processed:
239
+
240
+
```rb
241
+
Jekyll::Hooks.register :polyglot, :post_write do |site|
242
+
# do something custom and cool here!
243
+
end
244
+
```
245
+
237
246
### Machine-aware site building
238
247
_New in 1.5.0_
239
248
@@ -244,7 +253,6 @@ _:wave: I need assistance with modern ruby best practices for test maintenance w
244
253
245
254
Tests are run with `bundle exec rake`. Tests are in the `/spec` directory, and test failure output detail can be examined in the `rspec.xml` file.
246
255
247
-
248
256
## Features
249
257
This plugin stands out from other I18n Jekyll plugins.
250
258
- automatically corrects your relative links, keeping your *french* visitors on your *french* website, even when content has to fallback to the `default_lang`.
@@ -260,19 +268,9 @@ This plugin stands out from other I18n Jekyll plugins.
260
268
## SEO Recipes
261
269
Jekyll-polyglot has a few spectacular [Search Engine Optimization techniques](https://untra.github.io/polyglot/seo) to ensure your Jekyll blog gets the most out of its multilingual audience. Check them out!
262
270
263
-
### Other Websites Built with Polyglot
264
-
Feel free to open a PR and list your multilingual blog here you may want to share:
* [Hanare Cafe in Toshijima, Japan](https://hanarecafe.com)
270
-
* [F-Droid](https://f-droid.org)
271
-
* [Ubuntu MATE](https://ubuntu-mate.org)
272
-
* [Leo3418 blog](https://leo3418.github.io/)
273
-
* [Gaphor](https://gaphor.org)
274
-
* [Yi Yunseok's personal blog website](https://Yi-Yunseok.GitHub.io)
275
-
* [A beautiful, simple, clean, and responsive Jekyll theme for academics](https://github.com/george-gca/multi-language-al-folio)
273
+
See the example [sitemap.xml](/site/sitemap.xml) and [robots.txt](/site/robots.txt) for how to automatically generate a multi-language sitemap for your page and turn it in for the SEO i18n credit.
276
274
277
275
## Compatibility
278
276
Currently supports Jekyll 3.0 , and Jekyll 4.0
@@ -289,6 +287,34 @@ Please! I need all the support I can get! 🙏
289
287
But for real I would appreciate any code contributions and support. This started as an open-source side-project and has gotten bigger than I'd ever imagine!
290
288
If you have something you'd like to contribute to jekyll-polyglot, please open a PR!
291
289
290
+
### Contributors
291
+
These are talented and considerate software developers across the world that have lent their support to this project.
0 commit comments