一. 数据分析

谷歌分析

二. Hexo 更换markdown渲染+支持emoji插件

1. 命令行安装(powershell/cmder/cmd)

很简单,换一个 markdown 引擎,然后再增加 emoji 插件即可。😊

(以下三行得分开执行)

1
2
3
npm un hexo-renderer-marked --save
npm i hexo-renderer-markdown-it --save
npm install markdown-it-emoji --save

据说 hexo-renderer-markdown-it 的速度要比 Hexo 原装插件要快,而且功能更多:

Main Features

  • Support for Markdown, GFM and CommonMark
  • Extensive configuration
  • Faster than the default renderer | hexo-renderer-marked
  • Safe ID for headings
  • Anchors for headings with ID
  • Footnotes
  • <sub> H2O
  • <sup> x2
  • <ins> Inserted

然后编辑 _config.yml

1
2
3
4
5
6
7
markdown:
plugins:
- markdown-it-footnote
- markdown-it-sup
- markdown-it-sub
- markdown-it-abbr
- markdown-it-emoji

2. 使用方法

markdown
  1. markdown的脚标能用了
emoji
  1. Emoji 中找到你想要的表情,然后点击即可复制。

  2. 比如你想发一个笑脸 😄 直接输入笑脸对应的 emoji 编码 :smile: 就可以。