安装 - SimonAKing/hexo-theme-tomotoes GitHub Wiki
主题安装
安装需确认你的 Hexo 版本在 3.0 以上,以及 Node 版本为 6.x 以上,在 Hexo 根目录,执行以下命令。
git clone [email protected]:tomotoes/hexo-theme-tomotoes.git themes/tomotoes
依赖安装
还是在 Hexo 根目录,如果以下插件已安装过,无需再次安装。
Less
主题默认使用 less 作为 css 预处理工具。
$ npm install hexo-renderer-less --save
Feed
用于生成 rss。
$ npm install hexo-generator-feed --save
Json-content
用于生成静态站点数据,用作站内搜索的数据源。
$ npm install hexo-generator-json-content --save
QRCode
用于生成微信分享二维码。
$ npm install hexo-helper-qrcode --save
hexo-wordcount
用来显示文章更多信息,比如:字数,阅读时间
npm install hexo-wordcount --save
hexo-abbrlink
文章唯一链接,有利于SEO,主题脚本也对其有依赖
npm install hexo-abbrlink --save
hexo-filter-github-emojis
Emoji插件,让文章更生动
npm install hexo-filter-github-emojis --save
开启页面
标签页
hexo new page tags
修改 hexo/source/tags/index.md 的元数据
layout: tags
comments: false
分类页
hexo new page categories
修改 hexo/source/categories/index.md 的元数据
layout: categories
comments: false
关于页
hexo new page about
修改 hexo/source/about/index.md 的元数据
layout: about
comments: true
reward: false