# hexo-matery **Repository Path**: Sao-operation/hexo-matery ## Basic Information - **Project Name**: hexo-matery - **Description**: 个人博客修改后的配置 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-03 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## hexo-matery修改后的主题配置 ## 功能 除了[matery主题]( https://github.com/blinkfox/hexo-theme-matery )具备的所有功能外,增加了独立相册,流程图等功能 ## 预览 [博客地址](www.studydrive.club) ## 使用教程 [国内仓库地址](),直接`git clone`下来 安装淘宝镜像 ``` npm install cnpm -g --registry=http://registry.npm.taobao.org #全局安装 npm install cnpm --registry=http://registry.npm.taobao.org #局部安装 ``` 安装上hexo必备的一些插件 ``` cnpm i --save hexo-wordcount cnpm i --save hexo-deployer-git cnpm i -S hexo-prism-plugin cnpm i hexo-permalink-pinyin --save cnpm i --save hexo-generator-feed cnpm install hexo-generator-search --save cnpm i --save hexo-generator-archive cnpm i --save hexo-generator-index cnpm i --save hexo-generator-tag cnpm i --save hexo-renderer-ejs cnpm i --save hexo-renderer-kramed cnpm i --save hexo-renderer-stylus cnpm i --save hexo-server cnpm i --save hexo-generator-category cnpm i --save hexo-filter-mermaid-diagrams ``` 然后需要修改一些必要的配置 首先在**根目录**的_config.yml修改自己的网站名,作者名等,url处填写自己的网站名 ![网站地址](https://auto2dev.coding.net/p/ImageHostingService/d/ImageHostingService/git/raw/master/md/image-20200703185000368.png) 填写打开了 GitHub pages 或coding pages 的地址 ![开启pages的远程仓库](https://auto2dev.coding.net/p/ImageHostingService/d/ImageHostingService/git/raw/master/md/image-20200703185323511.png) 如果要打开评论,这里推荐用Valine,在**主题**下的_config.yml,把enable的false改成true,并且注册Valine账号填写appId和appKey ![评论](https://auto2dev.coding.net/p/ImageHostingService/d/ImageHostingService/git/raw/master/md/image-20200703185504138.png) 另外主题配置下的github地址换成自己的github地址(还有好几个哦,自己搜索替换一下吧) ![github地址](https://auto2dev.coding.net/p/ImageHostingService/d/ImageHostingService/git/raw/master/md/image-20200703185806555.png) 文章的img如果没有填写,就会从指定的图片里根据哈希码选择一张图片作为封面(还是在主题配置修改) ![文章封面图片](https://auto2dev.coding.net/p/ImageHostingService/d/ImageHostingService/git/raw/master/md/image-20200703190002407.png) **latex换行的bug(是插件渲染的问题,可以用四个/来换行),其他方面都没毛病。**hexo-renderer-pandoc 我也尝试过,但效果还来还是不如hexo-renderer-kramed(即上面安装的那个插件)如果不想用4个/来换行也可以参考下这个[Hexo中LaTeX公式渲染]( https://wangcong.net/article/HexoWihLaTeX.html ) (总之,hexo的latex渲染还是有点坑)