# Hexo-matery-theing **Repository Path**: theing/hexo-matery-theing ## Basic Information - **Project Name**: Hexo-matery-theing - **Description**: 基于matery修改的Hexo博客主题。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-07-26 - **Last Updated**: 2022-03-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # hexo-theme-matery [Github 部署演示示例 (https://theingz.github.io)](https://theingz.github.io) > 这是一个采用 `Material Design` 和响应式设计的 Hexo 博客主题。 ## 这个博客是基于matery 作者 闪烁之狐二次自定义修改主题。 matery主题请访问[https://github.com/blinkfox/hexo-theme-matery/](https://github.com/blinkfox/hexo-theme-matery/) ## 下载使用 在你的 `themes` 文件夹下使用 `git clone` 命令来下载: ```bash git clone https://github.com/theingz/hexo-theme-matery.git ``` ## 配置 ### 切换主题 修改 Hexo 根目录下的 `_config.yml` 的 `theme` 的值:`theme: hexo-matery-theing` #### `_config.yml` 文件的其它修改建议: ### 搜索 本主题中还使用到了 [hexo-generator-search](https://github.com/wzpan/hexo-generator-search) 的 Hexo 插件来做内容搜索,安装命令如下: ```bash npm install hexo-generator-search --save ``` 在 Hexo 根目录下的 `_config.yml` 文件中,新增以下的配置项: ```yaml search: path: search.xml field: post ``` ### 中文链接转拼音(建议安装) 如果你的文章名称是中文的,那么 Hexo 默认生成的永久链接也会有中文,这样不利于 `SEO`,且 `gitment` 评论对中文链接也不支持。我们可以用 [hexo-permalink-pinyin](https://github.com/viko16/hexo-permalink-pinyin) Hexo 插件使在生成文章时生成中文拼音的永久链接。 安装命令如下: ```bash npm i hexo-permalink-pinyin --save ``` 在 Hexo 根目录下的 `_config.yml` 文件中,新增以下的配置项: ```yaml permalink_pinyin: enable: true separator: '-' # default: '-' ``` > **注**:除了此插件外,[hexo-abbrlink](https://github.com/rozbo/hexo-abbrlink) 插件也可以生成非中文的链接。 ### 文章字数统计插件(建议安装) 如果你想要在文章中显示文章字数、阅读时长信息,可以安装 [hexo-wordcount](https://github.com/willin/hexo-wordcount)插件。 安装命令如下: ```bash npm i --save hexo-wordcount ``` 然后只需在本主题下的 `_config.yml` 文件中,将各个文章字数相关的配置激活即可: ```yaml postInfo: date: true update: false wordCount: false # 设置文章字数统计为 true. totalCount: false # 设置站点文章总字数统计为 true. min2read: false # 阅读时长. readCount: false # 阅读次数. ``` ### 添加emoji表情支持(可选的) 本主题新增了对`emoji`表情的支持,使用到了 [hexo-filter-github-emojis](https://npm.taobao.org/package/hexo-filter-github-emojis) 的 Hexo 插件来支持 `emoji`表情的生成,把对应的`markdown emoji`语法(`::`,例如:`:smile:`)转变成会跳跃的`emoji`表情,安装命令如下: ```bash npm install hexo-filter-github-emojis --save ``` 在 Hexo 根目录下的 `_config.yml` 文件中,新增以下的配置项: ```yaml githubEmojis: enable: true className: github-emoji inject: true styles: customEmojis: ``` 执行 `hexo clean && hexo g` 重新生成博客文件,然后就可以在文章中对应位置看到你用`emoji`语法写的表情了。