readmore 插件簡介
Hexo 整合 OpenWrite 平臺的 readmore 插件,實現博客的每一篇文章自動增加閱讀更多效果,關注公眾號後方可解鎖全站文章,從而實現博客流量導流到微信公眾號粉絲目的.
主頁[1]
效果
用法
Step #1 - 更新 _config.yml 配置文件
在 _config.yml 配置文件中,配置 readmore 插件相關信息,詳情https://openwrite.cn/openwrite/openwrite-readmore/.
注意: 前往 OpenWrite [2] 後臺申請開通 readmore 功能後,一定要替換成自己的相關配置!
其中,配置參數含義如下:
- blogId : [必選]OpenWrite 後臺申請的博客唯一標識,例如:15702-1569305559839-744
- name : [必選]OpenWrite 後臺申請的博客名稱,例如:雪之夢技術驛站
- qrcode : [必選]OpenWrite 後臺申請的微信公眾號二維碼,例如:https://snowdreams1006.github.io/snowdreams1006-wechat-public.jpeg
- keyword : [必選]OpenWrite 後臺申請的微信公眾號後臺回覆關鍵字,例如:vip
Step #2 - 運行 hexo 相關命令
- 運行 npm install 命令安裝到本地項目
$ npm install hexo-plugin-readmore --save
- 運行 hexo generate 命令構建本地項目或者 hexo server 啟動本地服務.
$ hexo generate
或者
$ hexo server
示例
不僅 hexo-plugin-readmore[3] 官方文檔已整合 readmore 版權保護插件,此外還提供了示例項目,詳情參考 example 目錄.
- 官方文檔[4]
- 官方示例[5]
作者
snowdreams1006
- Github: @snowdreams1006[6]
- Email: [email protected][7]
貢獻
如果你想貢獻自己的一份力量,歡迎提交 `Issues`[8] 或者 Pull Request 請求!
支持
如果本項目對你有所幫助,歡迎 ⭐️ hexo-plugin-readmore[9] 項目,感謝你的支持與認可!
Copyright © 2019 snowdreams1006[10] .
This project is MIT[11] licensed.
[1]主頁: https://github.com/snowdreams1006/hexo-plugin-readmore#readme
[2]OpenWrite: https://openwrite.cn/
[3]hexo-plugin-readmore: https://github.com/snowdreams1006/hexo-plugin-readmore
[4]官方文檔: https://github.com/snowdreams1006/hexo-plugin-readmore/tree/master/docs
[5]官方示例: https://github.com/snowdreams1006/hexo-plugin-readmore/tree/master/example
[6]@snowdreams1006: https://github.com/snowdreams1006
[7][email protected]: mailto:[email protected]
[8]Issues: https://github.com/snowdreams1006/hexo-plugin-readmore/issues
[9]hexo-plugin-readmore: https://github.com/snowdreams1006/hexo-plugin-readmore
[10]snowdreams1006: https://github.com/snowdreams1006
[11]MIT: https://github.com/snowdreams1006/hexo-plugin-readmore/blob/master/LICENSE
閱讀更多 雪之夢技術驛站 的文章