hexo-theme-stun
Advanced tools
Comparing version 2.6.0 to 2.6.1
@@ -5,2 +5,9 @@ # Changelog | ||
### [2.6.1](https://github.com/liuyib/hexo-theme-stun/compare/v2.6.0...v2.6.1) (2021-01-06) | ||
### Bug Fixes | ||
* **#149:** can't run when languages folder not exist ([f3956ff](https://github.com/liuyib/hexo-theme-stun/commit/f3956fffe81f0de4d7f4a455ce69b265fb474198)), closes [#149](https://github.com/liuyib/hexo-theme-stun/issues/149) | ||
## [2.6.0](https://github.com/liuyib/hexo-theme-stun/compare/v2.5.0...v2.6.0) (2021-01-05) | ||
@@ -7,0 +14,0 @@ |
{ | ||
"name": "hexo-theme-stun", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "A beautiful & simple theme for Hexo", | ||
@@ -5,0 +5,0 @@ "homepage": "https://liuyib.github.io", |
@@ -46,6 +46,9 @@ 'use strict' | ||
var targetLangData = data[`languages/${usingLang}`] | ||
var flattenData = flatten(targetLangData) | ||
if (Object.keys(flattenData).length) { | ||
hexo.theme.i18n.data[usingLang] = flattenData | ||
if (targetLangData) { | ||
var flattenData = flatten(targetLangData) | ||
if (Object.keys(flattenData).length) { | ||
hexo.theme.i18n.data[usingLang] = flattenData | ||
} | ||
} | ||
@@ -52,0 +55,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
312572
1552