From 43b109bdb6f9709904d4ce70fd487fa3e620f164 Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 27 Dec 2019 21:44:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E6=B1=BAgitalk=E5=A0=B1=E9=8C=AF?= =?UTF-8?q?=E5=95=8F=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++++++++ README_CN.md | 13 ++++++++++++- layout/includes/head.pug | 4 ++-- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7eca56d..32b47db 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,18 @@ JerryC: https://jerryc.me/ Based on [hexo-theme-melody](https://github.com/Molunerfinn/hexo-theme-melody) theme. +> If you update to hexo 4.2.0,it will be something's wrong +> +> ``` +> Error: Cannot find module 'cheerio' +> ``` +> +> please install cheerio +> +> ``` +> npm install cheerio --save +> ``` + ## Installation Stable branch: diff --git a/README_CN.md b/README_CN.md index 9777fed..a858781 100644 --- a/README_CN.md +++ b/README_CN.md @@ -9,9 +9,20 @@ Demo: https://demo.jerryc.me/ JerryC: https://jerryc.me/ - 一款基於[hexo-theme-melody](https://github.com/Molunerfinn/hexo-theme-melody)修改的主題 +> 如果升級到hexo 4.2.0 ,會出現報錯 +> +> ``` +> Error: Cannot find module 'cheerio' +> ``` +> +> 請在博客根目錄安裝cheerio +> +> ``` +> npm install cheerio --save +> ``` + ## 安裝 在你的博客根目錄裏 diff --git a/layout/includes/head.pug b/layout/includes/head.pug index 5cb6c38..de8c8f4 100644 --- a/layout/includes/head.pug +++ b/layout/includes/head.pug @@ -63,8 +63,8 @@ if theme.algolia_search.enable if (theme.gitalk && theme.gitalk.enable) link(rel="stylesheet" type="text/css" href=url_for(theme.CDN.gitalk_css)) - script(src=url_for(theme.CDN.gitalk) defer) - script(src=url_for(theme.CDN.blueimp_md5) defer) + script(src=url_for(theme.CDN.gitalk)) + script(src=url_for(theme.CDN.blueimp_md5)) //- google_adsense include ./head/google_adsense.pug