File: 2017-7-23-Polyglot-1.3.0.md

package info (click to toggle)
ruby-jekyll-polyglot 1.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,196 kB
  • sloc: xml: 1,500; ruby: 947; sh: 10; makefile: 4
file content (32 lines) | stat: -rw-r--r-- 1,417 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
layout: post
title: Polyglot 1.3.0
lang: zh-CN
---

Polyglot 的全新版本现已推出。去试试吧!

{% highlight yaml %}
gem install jekyll-polyglot
{% endhighlight %}

本次发布得益于以下 GitHub 用户的支持:

* [vlsi](https://github.com/vlsi)
* [pserwylo](https://github.com/pserwylo)

### 递归式合并不同语言特定的 `site.data`

现在,在你的 `site.data` 目录下的特定语言内容将会递归地被合并在一起。也就是说,`active_lang` 的内容会优先于 `default_lang` 的内容呈现,也就是优先于非特定语言的内容。([#59](https://github.com/untra/polyglot/pull/59))

### 未指定语言的文件仍然会被写入 `default_lang` 的站点根目录

如果没有在 `languages` 中定义 `default_lang`,本功能会确保没有指定语言的文件(也就是被排除在本地化之外的文件)仍然会被写入站点根目录。([#65](https://github.com/untra/polyglot/pull/65))

### `i18n_headers` 性能提升以及修复

现在,文档处理速度更快了。此外,修复了 `site.url` 被定义时的 `i18n_headers` 处理。([#67](https://github.com/untra/polyglot/pull/67))

### 自定义站点配置文件中的 `active_lang` 键

这将允许 `active_lang` 使用自定义的键,使 Polyglot 可以和其他的插件与主题更好地配合使用。([#68](https://github.com/untra/polyglot/pull/68))