All Projects → lujjjh → hexo-hanzi

lujjjh / hexo-hanzi

Licence: MIT License
Postrender your posts with hanzi (漢字標準格式).

Programming Languages

javascript
184084 projects - #8 most used programming language

hexo-hanzi

Build Status NPM version

English

使用汉字标准格式后渲染文章。

安装

$ npm install --save hexo-hanzi

用法

为主题布局页面的 <html> 增加 lang 属性,比如网页内容以简体中文为主

<html lang="zh-Hans-CN">

在主题布局页面的 <head> 中加入“汉字标准格式”的样式

<link rel="stylesheet" href="path/src/css/han.min.css">

或者,你也可以使用 CDN 版本,比如

<link href="//cdn.bootcss.com/Han/3.3.0/han.min.css" rel="stylesheet">

在重新生成之前,你需要清除缓存,以确保重新渲染文章

$ hexo clean
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].