From 79bdef1e9d5db0581b20d7b1a94e489b613037ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=93=E5=8F=91=E5=8F=97=E9=95=BF=E7=94=9F?= Date: Thu, 16 Jan 2020 13:29:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0xml=E6=B7=BB=E5=8A=A0markdown?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/generator.js | 2 +- source/_posts/前端杂烩/Hexo站点实现站内搜索.md | 2 -- templates/articles.xml | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) 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 %}