mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-12 22:17:06 +08:00
解決gitalk報錯問題
This commit is contained in:
12
README.md
12
README.md
@@ -13,6 +13,18 @@ JerryC: https://jerryc.me/
|
|||||||
|
|
||||||
Based on [hexo-theme-melody](https://github.com/Molunerfinn/hexo-theme-melody) theme.
|
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
|
## Installation
|
||||||
|
|
||||||
Stable branch:
|
Stable branch:
|
||||||
|
|||||||
13
README_CN.md
13
README_CN.md
@@ -9,9 +9,20 @@ Demo: https://demo.jerryc.me/
|
|||||||
|
|
||||||
JerryC: https://jerryc.me/
|
JerryC: https://jerryc.me/
|
||||||
|
|
||||||
|
|
||||||
一款基於[hexo-theme-melody](https://github.com/Molunerfinn/hexo-theme-melody)修改的主題
|
一款基於[hexo-theme-melody](https://github.com/Molunerfinn/hexo-theme-melody)修改的主題
|
||||||
|
|
||||||
|
> 如果升級到hexo 4.2.0 ,會出現報錯
|
||||||
|
>
|
||||||
|
> ```
|
||||||
|
> Error: Cannot find module 'cheerio'
|
||||||
|
> ```
|
||||||
|
>
|
||||||
|
> 請在博客根目錄安裝cheerio
|
||||||
|
>
|
||||||
|
> ```
|
||||||
|
> npm install cheerio --save
|
||||||
|
> ```
|
||||||
|
|
||||||
## 安裝
|
## 安裝
|
||||||
|
|
||||||
在你的博客根目錄裏
|
在你的博客根目錄裏
|
||||||
|
|||||||
@@ -63,8 +63,8 @@ if theme.algolia_search.enable
|
|||||||
|
|
||||||
if (theme.gitalk && theme.gitalk.enable)
|
if (theme.gitalk && theme.gitalk.enable)
|
||||||
link(rel="stylesheet" type="text/css" href=url_for(theme.CDN.gitalk_css))
|
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.gitalk))
|
||||||
script(src=url_for(theme.CDN.blueimp_md5) defer)
|
script(src=url_for(theme.CDN.blueimp_md5))
|
||||||
|
|
||||||
//- google_adsense
|
//- google_adsense
|
||||||
include ./head/google_adsense.pug
|
include ./head/google_adsense.pug
|
||||||
|
|||||||
Reference in New Issue
Block a user