diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 3a975ba..de79054 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,11 +1,4 @@ -Please make sure these boxes are checked before submitting your issue. Thank you! +Please make sure you took care of the following things before you submit this issue. Thank you! -- [ ] I have setuped and configurated the blog according to [Hexo official documentation](https://hexo.io/); -- [ ] I have read the [Theme Wiki](https://github.com/ppoffice/hexo-theme-icarus/wiki) carefully and created my own configuration file(_config.yml); -- [ ] I have looked up the [Issues](https://github.com/ppoffice/hexo-theme-icarus/issues) and found no duplicate issues. - -请在发布新Issue之前确保你已经进行了如下工作,谢谢! - -- [ ] 我已经按照[Hexo官方文档](https://hexo.io/)中的步骤安装与配置了Hexo; -- [ ] 我已经仔细地阅读了[主题Wiki](https://github.com/ppoffice/hexo-theme-icarus/wiki)并创建了自己的配置文件(_config.yml); -- [ ] 我已经搜索了[Issues](https://github.com/ppoffice/hexo-theme-icarus/issues),并且没有找到类似的问题。 +- [ ] I have set up and configured my blog according to [Hexo documentation](https://hexo.io/) and [Icarus Documentation](https://github.com/ppoffice/hexo-theme-icarus/wiki); +- [ ] I have looked up the [Github Issues](https://github.com/ppoffice/hexo-theme-icarus/issues) and found no solutions to my problems. diff --git a/README.md b/README.md index 7735931..5b49914 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,13 @@

-
A modern, simple, and delicate theme for the static site generator Hexo. +
A simple, delicate, and modern theme for the static site generator Hexo.
Preview | Documentation | Download +
+ +[![GitHub release](https://img.shields.io/github/release/qubyte/rubidium.svg)](https://github.com/ppoffice/hexo-theme-icarus)

![Icarus](http://ppoffice.github.io/hexo-theme-icarus/gallery/preview.png "Icarus Preview") @@ -113,9 +116,10 @@ layout across multiple viewpoints. This project is built with -- Hexo 3.6.0 +- Hexo 3.7.1 - Ejs - Stylus +- Bulma 0.7.2 Please refer to the documentation for Icarus implementation details. diff --git a/includes/generators/insight.js b/includes/generators/insight.js index ce5cc3a..88f7671 100644 --- a/includes/generators/insight.js +++ b/includes/generators/insight.js @@ -7,7 +7,13 @@ module.exports = function (hexo) { hexo.extend.generator.register('insight', function (locals) { const url_for = hexo.extend.helper.get('url_for').bind(this); function minify(str) { - return util.stripHTML(str).trim().replace(/\n/g, ' ').replace(/\s+/g, ' '); + return util.stripHTML(str).trim().replace(/\n/g, ' ').replace(/\s+/g, ' ') + .replace(/&#x([\da-fA-F]+);/g, function (match, hex) { + return String.fromCharCode(parseInt(hex, 16)); + }) + .replace(/&#([\d]+);/g, function (match, dec) { + return String.fromCharCode(dec); + }); } function postMapper(post) { return { diff --git a/includes/helpers/override.js b/includes/helpers/override.js index 3846386..84fbcbc 100644 --- a/includes/helpers/override.js +++ b/includes/helpers/override.js @@ -7,7 +7,6 @@ * <%- _list_tags() %> * <%- _toc() %> */ -const _ = require('lodash'); const cheerio = require('cheerio'); module.exports = function (hexo) { @@ -94,7 +93,7 @@ module.exports = function (hexo) { $(tags.join(',')).each(function () { const level = tags.indexOf(this.name); const id = $(this).attr('id'); - const text = _.escape($(this).text()); + const text = $(this).text(); for (let i = 0; i < levels.length; i++) { if (i > level) { diff --git a/includes/tasks/check_deps.js b/includes/tasks/check_deps.js index ec2b87e..663e0d0 100644 --- a/includes/tasks/check_deps.js +++ b/includes/tasks/check_deps.js @@ -14,7 +14,6 @@ logger.info('Checking dependencies'); const missingDeps = [ 'js-yaml', 'moment', - 'lodash', 'cheerio', 'hexo-util', 'hexo-log', diff --git a/layout/common/footer.ejs b/layout/common/footer.ejs index 2f77136..05926f7 100644 --- a/layout/common/footer.ejs +++ b/layout/common/footer.ejs @@ -17,12 +17,12 @@
<% if (has_config('footer.links')) { %> -
+