From 03dfdaeb1f76dda645d8544eab9347a83e21208b Mon Sep 17 00:00:00 2001 From: curbengh <43627182+curbengh@users.noreply.github.com> Date: Tue, 10 Dec 2019 01:37:32 +0000 Subject: [PATCH 1/3] news(hexo 4.1): 'language-TERRITORY' should be used for multilingual support --- source/_posts/2019-12-09-hexo-4-1-released.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/_posts/2019-12-09-hexo-4-1-released.md b/source/_posts/2019-12-09-hexo-4-1-released.md index 9d6afba92d..44820b3212 100644 --- a/source/_posts/2019-12-09-hexo-4-1-released.md +++ b/source/_posts/2019-12-09-hexo-4-1-released.md @@ -5,10 +5,11 @@ title: Hexo 4.1.0 Released ### Breaking changes - Requires Node 8.10 or above [#3778] * Node 8 is going to be deprecated in [less than a month](https://github.com/nodejs/Release/blob/master/README.md), we strongly urge to upgrade to Node 10 or newer -- `og:locale` [Open Graph](https://ogp.me/) tag won't be inserted if `language:` (in config, front-matter of post/page or [`open_graph()`](/docs/helpers#open-graph) helper) is not in `language_TERRITORY` format, otherwise it assumes `en_US` value [#3808] +- `og:locale` [Open Graph](https://ogp.me/) tag won't be inserted if `language:` (in config, front-matter of post/page or [`open_graph()`](/docs/helpers#open-graph) helper) is not in `language-TERRITORY` format [#3808] * `en` is invalid - * `en_GB` is valid - * Not all locales are supported (e.g. `en_AU` is not valid), see [official list](https://developers.facebook.com/docs/messenger-platform/messenger-profile/supported-locales/) + * `en-GB` is valid + * Not all locales are supported (e.g. `en-AU` is not valid), see [official list](https://developers.facebook.com/docs/messenger-platform/messenger-profile/supported-locales/) + * Dash (e.g. "en-GB") must be used for multilingual support, dash is automatically transformed to underscore (e.g. "en_GB") in `og:locale` ### Features - Support adding hour and minute to post permalink [#3629] From 234235aa2e4885952c29d8aa92b5d788b71979de Mon Sep 17 00:00:00 2001 From: curbengh <43627182+curbengh@users.noreply.github.com> Date: Tue, 10 Dec 2019 01:56:37 +0000 Subject: [PATCH 2/3] news(hexo 4.1): recommend user to check with theme --- source/_posts/2019-12-09-hexo-4-1-released.md | 1 + 1 file changed, 1 insertion(+) diff --git a/source/_posts/2019-12-09-hexo-4-1-released.md b/source/_posts/2019-12-09-hexo-4-1-released.md index 44820b3212..105643ca96 100644 --- a/source/_posts/2019-12-09-hexo-4-1-released.md +++ b/source/_posts/2019-12-09-hexo-4-1-released.md @@ -10,6 +10,7 @@ title: Hexo 4.1.0 Released * `en-GB` is valid * Not all locales are supported (e.g. `en-AU` is not valid), see [official list](https://developers.facebook.com/docs/messenger-platform/messenger-profile/supported-locales/) * Dash (e.g. "en-GB") must be used for multilingual support, dash is automatically transformed to underscore (e.g. "en_GB") in `og:locale` + * Verify the corresponding file exists in the `languages/` folder of installed theme before changing the `language:` config ### Features - Support adding hour and minute to post permalink [#3629] From 8fc69249a19e27192bb4a4d211db54e037c85180 Mon Sep 17 00:00:00 2001 From: curbengh <43627182+curbengh@users.noreply.github.com> Date: Tue, 10 Dec 2019 23:36:52 +1030 Subject: [PATCH 3/3] news(hexo 4.1): clarify meta_generator helper https://github.com/hexojs/hexo/issues/3919 --- source/_posts/2019-12-09-hexo-4-1-released.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_posts/2019-12-09-hexo-4-1-released.md b/source/_posts/2019-12-09-hexo-4-1-released.md index 105643ca96..5164601682 100644 --- a/source/_posts/2019-12-09-hexo-4-1-released.md +++ b/source/_posts/2019-12-09-hexo-4-1-released.md @@ -32,7 +32,7 @@ title: Hexo 4.1.0 Released <%- meta_generator() %> ``` * would output `` - * Hexo 3.9.0+ inserts the tag automatically; to get the performance benefit, [`meta_generator:`](/docs/configuration#Extensions) option needs to be disabled, + * Hexo 3.9.0+ inserts the tag automatically; to get the performance benefit (of the `meta_generator` helper), [`meta_generator:`](/docs/configuration#Extensions) option should be disabled, ``` yml _config.yml meta_generator: false