diff --git a/scripts/generator.js b/scripts/generator.js index 0191e48..aab7165 100644 --- a/scripts/generator.js +++ b/scripts/generator.js @@ -2,7 +2,7 @@ const nunjucks = require('nunjucks') const path = require('path') const fs = require('fs') -const env = new nunjucks.Environment() +const env = new nunjucks.configure({ autoescape: false }) env.addFilter('noControlChars', function(str) { return str && str.replace(/[\x00-\x1F\x7F]/g, '') }) diff --git a/source/_posts/前端杂烩/Hexo站点实现站内搜索.md b/source/_posts/前端杂烩/Hexo站点实现站内搜索.md index 655d094..d5e0206 100644 --- a/source/_posts/前端杂烩/Hexo站点实现站内搜索.md +++ b/source/_posts/前端杂烩/Hexo站点实现站内搜索.md @@ -30,9 +30,7 @@ search: /文章URL地址/ - 这里是文章内容

- ]]>
分类1 diff --git a/templates/articles.xml b/templates/articles.xml index 1489262..6034ff7 100644 --- a/templates/articles.xml +++ b/templates/articles.xml @@ -23,6 +23,7 @@ {% if post.date %} {{ +post.date }} {% endif %} + {% endif %}