Socket
Book a DemoInstallSign in
Socket

hexo-hanzi

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-hanzi

Postrender the content of posts with hanzi (漢字標準格式)

0.3.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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

Keywords

hexo

FAQs

Package last updated on 22 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.