Skip to content

Commit

Permalink
解決gitalk報錯問題
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryc127 committed Dec 27, 2019
1 parent 995fc7c commit 43b109b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
13 changes: 12 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
> ```
## 安裝
在你的博客根目錄裏
Expand Down
4 changes: 2 additions & 2 deletions layout/includes/head.pug
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43b109b

Please sign in to comment.