歡迎訪問我的個人博客網(wǎng)站:http://www.yanmin99.com/
Hexo的Next主題增加暢言評論
評論插件選擇
- 多說評論已經(jīng)確定在2017年6月1日正式關(guān)停服務(wù)示括,網(wǎng)易云跟貼確定在2017年8月1日停服废酷。所以推薦大家使用搜狐的暢言評論
一、暢言評論
-
注冊暢言評論
-
添加站點
-
獲取APP ID蝴光、APP KEY
二揣非、上線暢言評論
- 打開
themes/next/_config.yml
文件 - 設(shè)置
enable:true
,并且把后后臺APP ID抡医、APP KEY設(shè)置給appid和appkey
-
hexo server
啟動以后,訪問如果出現(xiàn)以下錯誤
Unhandled rejection Error: ENOENT: no such file or directory, open '/disk2/blog/themes/next/layout/_third-party/comments/changyan.swig'
at Object.fs.openSync (fs.js:651:18)
at Object.fs.readFileSync (fs.js:553:33)
at Object.ret.load (/disk2/blog/node_modules/swig/lib/loaders/filesystem.js:55:15)
at exports.Swig.compileFile (/disk2/blog/node_modules/swig/lib/swig.js:695:31)
at Object.eval [as tpl] (eval at precompile (/disk2/blog/node_modules/swig/lib/swig.js:498:13), <anonymous>:15:18)
at compiled (/disk2/blog/node_modules/swig/lib/swig.js:619:18)
at Object.eval [as tpl] (eval at precompile (/disk2/blog/node_modules/swig/lib/swig.js:498:13), <anonymous>:853:127)
at compiled (/disk2/blog/node_modules/swig/lib/swig.js:619:18)
at Theme._View.View._compiled (/disk2/blog/node_modules/hexo/lib/theme/view.js:127:30)
at Theme._View.View.View.render (/disk2/blog/node_modules/hexo/lib/theme/view.js:29:15)
at /disk2/blog/node_modules/hexo/lib/hexo/index.js:390:25
at tryCatcher (/disk2/blog/node_modules/bluebird/js/release/util.js:16:23)
at /disk2/blog/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/disk2/blog/node_modules/hexo/lib/hexo/router.js:134:3)
at RouteStream.Readable.read (_stream_readable.js:431:10)
at resume_ (_stream_readable.js:811:12)
at _combinedTickCallback (internal/process/next_tick.js:102:11)
at process._tickCallback (internal/process/next_tick.js:161:9)
把changyan.swig地址拷貝以下:cp layout/_scripts/third-party/comments/changyan.swig layout/_third-party/comments/