# hexo-theme-typography **Repository Path**: yue_plus/hexo-theme-typography ## Basic Information - **Project Name**: hexo-theme-typography - **Description**: Rediscover the beauty of typography. - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-10-27 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README hexo-theme-Typography ====== [点击查看演示](https://yueplus.ink)   [Click here to read English documentation](https://github.com/SumiMakito/hexo-theme-typography/blob/master/README.md) ## 安装 ### 依赖项 请仔细阅读,再根据需要复制以下代码。 ```bash cd hexo # 进入 Hexo 博客根目录 ``` #### Yarn 用户 ```bash yarn remove hexo-generator-category # 此处我们使用 hexo-generator-category-enhance yarn add hexo-renderer-jade hexo-generator-archive hexo-generator-category-enhance hexo-generator-feed hexo-generator-tag yarn add hexo-prism-plugin # 语法高亮支持 ``` #### Npm 用户 ```bash npm uninstall --save hexo-generator-category # 此处我们使用 hexo-generator-category-enhance npm install --save hexo-renderer-jade hexo-generator-archive hexo-generator-category-enhance hexo-generator-feed hexo-generator-tag npm install --save hexo-prism-plugin # 语法高亮支持 ``` ### 安装主题 ```bash git clone https://github.com/SumiMakito/hexo-theme-typography themes/typography cd themes/typography npm install yarn install # yarn 用户 ``` ### 修改配置文件 请对博客根目录下的主配置文件 *_config.yml* 进行响应的改动。 ```yaml theme: typography highlight: enable: false # we will use the prism plugin instead plugin: - hexo-generator-category-enhance - hexo-generator-feed - hexo-asset-image - hexo-prism-plugin - hexo-toc # ... other plugins you'd like to enable # Generate archive page archive_generator: per_page: 0 # Generate categories index page and each category page category_generator: per_page: 10 enable_index_page: true # Generate tags index page and each tag page tag_generator: per_page: 10 enable_index_page: true # Generator atom feed for you website feed: type: atom path: atom.xml limit: 20 hub: content: content_limit: 140 content_limit_delim: ' ' # For syntax highlighting prism_plugin: mode: 'preprocess' theme: 'default' line_number: true # 在页脚显示ICP备案号,不显示留空。 icp: ``` ## 更新 ```bash cd themes/typography git pull # npm run scss-compile 已弃用 npm run build yarn run build # yarn 用户 ``` > 如果你使用 `git` 管理整个博客,更新时可能会遇到 `modified: themes/typography` 错误。解决方案是从 GitHub 直接下载最新的 ZIP 压缩包并解压,而不是使用 `git pull`。 ## 定制 「活版印字」主题整合了几个方便好用的功能,因此你可以使用主题目录下的 `_config.yml` 来随时进行定制。 ### 设置标题的正确姿势很重要 「活版印字」主题提供了三个标题,它们分别是:`title`、`title_primary` 和 `title_secondary`。`title` 存在于 Hexo 根目录下的 `_config.yml` 中,而 `title_primary` 和 `title_secondary` 存在于主题目录下的 `_config.yml` 中。 - `title` 将出现在所有 HTML 页的标题中(`
> WeChat 和 支付宝 都可以哦
## 许可协议
© 2017-2018 Makito
「活版印字」主题遵循 MIT 许可协议分发。