基本步骤

1. 安装 node

2. 安装 pnpm

https://www.pnpm.cn/installation

1
iwr https://get.pnpm.io/install.ps1 -useb | iex

3. 安装 hexo

1
pnpm install -g hexo-cli

4. 创建项目 blog

1
2
3
hexo init blog
cd blog
hexo serve

5. 配置 blog

插件:https://hexo.io/plugins/
主题:https://hexo.io/themes/
本博客使用的:
butterfly 主题

6. 常用命令

7. 其他

Markdown 语法

名称 描述 语法
markdown-it-abbr 注释 *[HTML]: 超文本标记语言
markdown-it-emoji 表情 😃
markdown-it-footnote 脚注 参考文献[1]
markdown-it-ins 下划线 下划线
markdown-it-mark 突出显示 标记
markdown-it-sub 下标 H2O
markdown-it-sup 上标 X2
markdown-it-checkbox 复选框 - [ ] 未选
markdown-it-checkbox 复选框 - [x] 选中
  • 测试
  • 测试

The HTML specification
is maintained by the W3C.

::: Hint
here be dragons
:::

::: warning
here be dragons
:::

here is an inline footnote[^2](inline footnote)
and another one[2]
and another one[3]

::: info

可以直接使用pnpm作为包管理工具。

:::

::: danger
here be dragons
:::


  1. basic footnote content ↩︎

  2. paragraph
    footnote
    content ↩︎

  3. footnote content with some markdown ↩︎