hexo-theme-next
Advanced tools
Comparing version 7.4.2 to 7.5.0
@@ -10,4 +10,4 @@ --- | ||
Please check if your Issue fulfills the following requirements. | ||
请务必确认您在提交此 Issue 前已经查看并完成了下列检查单中的所有事项。 | ||
Please check if your Issue fulfills the following requirements. If you refuse to fill out the following information in accordance with the template, we may close your issue without conducting an investigation. | ||
请务必确认您在提交此 Issue 前已经查看并完成了下列检查单中的所有事项。如果您拒绝根据模板填写以下信息,我们可能会在不进行调查的情况下关闭您的 Issue。 | ||
@@ -17,2 +17,3 @@ ## Issue Checklist <!-- 我确认我已经查看了 --> | ||
- [ ] I am using [the latest](https://github.com/theme-next/hexo-theme-next/releases/latest) version of NexT. | ||
- [ ] I have executed `hexo clean`, cleared the browser cache and disabled all CDN services (e.g. Cloudflare Rocket Loader), this issue still exists. | ||
@@ -19,0 +20,0 @@ - [ ] I have confirmed that this issue only appears in theme NexT, but cannot be reproduced in other themes (e.g. default theme landscape). In other words, prove that this is a NexT issue, not a issue from Hexo. |
@@ -10,4 +10,4 @@ --- | ||
Please check if your Issue fulfills the following requirements. | ||
请务必确认您在提交此 Issue 前已经查看并完成了下列检查单中的所有事项。 | ||
Please check if your Issue fulfills the following requirements. If you refuse to fill out the following information in accordance with the template, we may close your issue without conducting an investigation. | ||
请务必确认您在提交此 Issue 前已经查看并完成了下列检查单中的所有事项。如果您拒绝根据模板填写以下信息,我们可能会在不进行调查的情况下关闭您的 Issue。 | ||
@@ -17,2 +17,3 @@ ## Issue Checklist <!-- 我确认我已经查看了 --> | ||
- [ ] I am using [the latest](https://github.com/theme-next/hexo-theme-next/releases/latest) version of NexT. | ||
- [ ] I have already viewed [NexT Documentation Site](http://theme-next.org/docs/) and [Hexo Docs page](https://hexo.io/docs/), especially [Troubleshooting](https://hexo.io/docs/troubleshooting.html) part. | ||
@@ -19,0 +20,0 @@ - [ ] I have already viewed the latest Roadmap on GitHub and searched for current [issues](https://github.com/theme-next/hexo-theme-next/issues?utf8=%E2%9C%93&q=is%3Aissue), which does not help me. |
@@ -9,1 +9,13 @@ --- | ||
--- | ||
Please check if your Issue fulfills the following requirements. If you refuse to fill out the following information in accordance with the template, we may close your issue without conducting an investigation. | ||
请务必确认您在提交此 Issue 前已经查看并完成了下列检查单中的所有事项。如果您拒绝根据模板填写以下信息,我们可能会在不进行调查的情况下关闭您的 Issue。 | ||
## Issue Checklist <!-- 我确认我已经查看了 --> | ||
<!-- Change [ ] to [x] to select, not [ x] or [x ] (将 [ ] 换成 [x] 来选择,而非 [ x] 或者 [x ]) --> | ||
- [ ] I am using [the latest](https://github.com/theme-next/hexo-theme-next/releases/latest) version of NexT. | ||
- [ ] I have already viewed [NexT Documentation Site](http://theme-next.org/docs/) and [Hexo Docs page](https://hexo.io/docs/), especially [Troubleshooting](https://hexo.io/docs/troubleshooting.html) part. | ||
- [ ] I have already viewed the latest Roadmap on GitHub and searched for current [issues](https://github.com/theme-next/hexo-theme-next/issues?utf8=%E2%9C%93&q=is%3Aissue), which does not help me. | ||
*** |
@@ -10,4 +10,4 @@ --- | ||
Please check if your Issue fulfills the following requirements. | ||
请务必确认您在提交此 Issue 前已经查看并完成了下列检查单中的所有事项。 | ||
Please check if your Issue fulfills the following requirements. If you refuse to fill out the following information in accordance with the template, we may close your issue without conducting an investigation. | ||
请务必确认您在提交此 Issue 前已经查看并完成了下列检查单中的所有事项。如果您拒绝根据模板填写以下信息,我们可能会在不进行调查的情况下关闭您的 Issue。 | ||
@@ -17,2 +17,3 @@ ## Issue Checklist <!-- 我确认我已经查看了 --> | ||
- [ ] I am using [the latest](https://github.com/theme-next/hexo-theme-next/releases/latest) version of NexT. | ||
- [ ] I have executed `hexo clean`, cleared the browser cache and disabled all CDN services (e.g. Cloudflare Rocket Loader), this issue still exists. | ||
@@ -19,0 +20,0 @@ - [ ] I have confirmed that this issue only appears in theme NexT, but cannot be reproduced in other themes (e.g. default theme landscape). In other words, prove that this is a NexT issue, not a issue from Hexo. |
@@ -21,3 +21,3 @@ <div align="right"> | ||
<a href="https://travis-ci.org/theme-next/hexo-theme-next?branch=master"><img src="https://img.shields.io/travis/theme-next/hexo-theme-next/master?style=flat-square&logo=travis%20ci" title="Travis CI [Linux]"></a> | ||
<a href="https://app.codacy.com/manual/theme-next/hexo-theme-next/dashboard"><img src="https://img.shields.io/codacy/grade/3f91d806eb204fc2b597543151fff87d/master?style=flat-square&logo=codacy" title="Оценка проекта"></a> | ||
<a href="https://app.codacy.com/manual/theme-next/hexo-theme-next/dashboard"><img src="https://img.shields.io/codacy/grade/72f7fe7609c2438a92069f448e5a341a/master?style=flat-square&logo=codacy" title="Оценка проекта"></a> | ||
<img src="https://img.shields.io/snyk/vulnerabilities/github/theme-next/hexo-theme-next?style=flat-square" title="Vulnerabilities"> | ||
@@ -112,5 +112,5 @@ <br> | ||
| ||
<a href="https://www.browserstack.com"><img align="center" width="140" src="https://www.browserstack.com/images/mail/browserstack-logo-footer.png"></a> | ||
<a href="https://travis-ci.com"><img align="center" width="140" src="https://raw.githubusercontent.com/travis-ci/travis-web/master/public/images/logos/TravisCI-Full-Color.png"></a> | ||
<br> | ||
<sub>Codacy позволяет нам запускать набор тестов, BrowserStack позволяет нам тестировать в реальных браузерах.</sub> | ||
<sub>Codacy позволяет нам контролировать качество кода, Travis CI позволяет нам запускать набор тестов.</sub> | ||
</p> | ||
@@ -117,0 +117,0 @@ |
@@ -21,3 +21,3 @@ <div align="right"> | ||
<a href="https://travis-ci.org/theme-next/hexo-theme-next?branch=master"><img src="https://img.shields.io/travis/theme-next/hexo-theme-next/master?style=flat-square&logo=travis%20ci" title="Travis CI [Linux]"></a> | ||
<a href="https://app.codacy.com/manual/theme-next/hexo-theme-next/dashboard"><img src="https://img.shields.io/codacy/grade/3f91d806eb204fc2b597543151fff87d/master?style=flat-square&logo=codacy" title="Project Grade"></a> | ||
<a href="https://app.codacy.com/manual/theme-next/hexo-theme-next/dashboard"><img src="https://img.shields.io/codacy/grade/72f7fe7609c2438a92069f448e5a341a/master?style=flat-square&logo=codacy" title="Project Grade"></a> | ||
<img src="https://img.shields.io/snyk/vulnerabilities/github/theme-next/hexo-theme-next?style=flat-square" title="Vulnerabilities"> | ||
@@ -132,5 +132,5 @@ <br> | ||
| ||
<a href="https://www.browserstack.com"><img align="center" width="140" src="https://www.browserstack.com/images/mail/browserstack-logo-footer.png"></a> | ||
<a href="https://travis-ci.com"><img align="center" width="140" src="https://raw.githubusercontent.com/travis-ci/travis-web/master/public/images/logos/TravisCI-Full-Color.png"></a> | ||
<br> | ||
<sub>Codacy 容许我们运行测试套件,BrowserStack 容许我们在真实的浏览器中进行测试。</sub> | ||
<sub>Codacy 容许我们监控代码质量,Travis CI 容许我们运行测试套件。</sub> | ||
</p> | ||
@@ -137,0 +137,0 @@ |
{ | ||
"name": "hexo-theme-next", | ||
"version": "7.4.2", | ||
"version": "7.5.0", | ||
"description": "Elegant and powerful theme for Hexo", | ||
@@ -5,0 +5,0 @@ "main": "gulpfile.js", |
@@ -21,3 +21,3 @@ <div align="right"> | ||
<a href="https://travis-ci.org/theme-next/hexo-theme-next?branch=master"><img src="https://img.shields.io/travis/theme-next/hexo-theme-next/master?style=flat-square&logo=travis%20ci" title="Travis CI [Linux]"></a> | ||
<a href="https://app.codacy.com/manual/theme-next/hexo-theme-next/dashboard"><img src="https://img.shields.io/codacy/grade/3f91d806eb204fc2b597543151fff87d/master?style=flat-square&logo=codacy" title="Project Grade"></a> | ||
<a href="https://app.codacy.com/manual/theme-next/hexo-theme-next/dashboard"><img src="https://img.shields.io/codacy/grade/72f7fe7609c2438a92069f448e5a341a/master?style=flat-square&logo=codacy" title="Project Grade"></a> | ||
<img src="https://img.shields.io/snyk/vulnerabilities/github/theme-next/hexo-theme-next?style=flat-square" title="Vulnerabilities"> | ||
@@ -134,6 +134,6 @@ <br> | ||
| ||
<a href="https://www.browserstack.com"><img align="center" width="140" src="https://www.browserstack.com/images/mail/browserstack-logo-footer.png"></a> | ||
<a href="https://travis-ci.com"><img align="center" width="140" src="https://raw.githubusercontent.com/travis-ci/travis-web/master/public/images/logos/TravisCI-Full-Color.png"></a> | ||
<br> | ||
<br> | ||
<sub>Codacy allows us to run the test suite, BrowserStack allows us to test in real browsers.</sub> | ||
<sub>Codacy allows us to monitor code quality, Travis CI allows us to run the test suite.</sub> | ||
</p> | ||
@@ -140,0 +140,0 @@ |
@@ -16,3 +16,3 @@ /* global hexo */ | ||
const path = require('path'); | ||
const env = require(path.normalize('../../package.json')); | ||
const { version } = require(path.normalize('../../package.json')); | ||
https.get({ | ||
@@ -34,3 +34,3 @@ hostname: 'api.github.com', | ||
var latest = JSON.parse(result).tag_name.replace('v', '').split('.'); | ||
var current = env.version.split('.'); | ||
var current = version.split('.'); | ||
var isOutdated = false; | ||
@@ -37,0 +37,0 @@ for (var i = 0; i < Math.max(latest.length, current.length); i++) { |
'use strict'; | ||
function isObject(item) { | ||
return item && typeof item === 'object' && !Array.isArray(item); | ||
} | ||
function merge(target, source) { | ||
for (const key in source) { | ||
if (isObject(target[key]) && isObject(source[key])) { | ||
merge(target[key], source[key]); | ||
} else { | ||
target[key] = source[key]; | ||
} | ||
} | ||
return target; | ||
} | ||
module.exports = hexo => { | ||
@@ -9,4 +24,2 @@ if (!hexo.locals.get) return; | ||
const merge = require(hexo.base_dir + 'node_modules/lodash/merge'); | ||
/** | ||
@@ -13,0 +26,0 @@ * Merge configs from _data/next.yml into hexo.theme.config. |
@@ -5,3 +5,2 @@ /* global hexo */ | ||
const path = require('path'); | ||
const crypto = require('crypto'); | ||
@@ -17,4 +16,3 @@ | ||
const { js } = hexo.theme.config; | ||
const { version } = require(path.normalize('../../package.json')); | ||
return urls.map(url => this.js(`${js}/${url}?v=${version}`)).join(''); | ||
return urls.map(url => this.js(`${js}/${url}`)).join(''); | ||
}); | ||
@@ -21,0 +19,0 @@ |
@@ -13,7 +13,7 @@ /* global hexo */ | ||
}); | ||
env.addFilter('attr', function(dictionary, key, value) { | ||
env.addFilter('attr', (dictionary, key, value) => { | ||
dictionary[key] = value; | ||
return dictionary; | ||
}); | ||
env.addFilter('json', function(dictionary) { | ||
env.addFilter('json', dictionary => { | ||
return JSON.stringify(dictionary || ''); | ||
@@ -24,4 +24,4 @@ }); | ||
function njkRenderer(data, locals, callback) { | ||
return njkCompile(data).render(locals, callback); | ||
function njkRenderer(data, locals) { | ||
return njkCompile(data).render(locals); | ||
} | ||
@@ -33,4 +33,4 @@ | ||
// Need a closure to keep the compiled template. | ||
return function(locals, callback) { | ||
return compiledTemplate.render(locals, callback); | ||
return function(locals) { | ||
return compiledTemplate.render(locals); | ||
}; | ||
@@ -37,0 +37,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
4
1147100
301
4902