hexo增加脚注功能

需求

让hexo博客可以使用脚注功能

安装

  1. 拥有hexo博客
  2. 安装 hexo-footnotes 插件
    1
    yarn add hexo-footnotes
  3. 配置 _config.yml 文件
    1
    2
    plugins:
    - hexo-footnotes

注意事项

  • 脚注的解释尽量写在页面的最底部,防止渲染出现问题
  • 脚注的变量必须是数字,最好是连续的数字,符合规范
  • 尽量使用标准脚注方式进行代码书写

用法和效果展示

1
2
3
4
5
6
7
8
9
10
basic footnote[^1]
and another one[^3]
[^3]: paragraph
here is an inline footnote[^2](inlinefootnote)
and another one[^4]

[^1]: basic footnote content
footnote
content
[^4]: footnote content with some [markdown](https://en.wikipedia.org/wiki/Markdown)

basic footnote1
and another one3
here is an inline footnote2
and another one4


  1. 1.basic footnote content
  2. 2.inlinefootnote
  3. 3.paragraph footnote content
  4. 4.footnote content with some markdown
  • 版权声明: 本博客所有文章,未经许可,任何单位及个人不得做营利性使用!转载请标明出处!如有侵权请联系作者。
  • Copyrights © 2015-2023 翟天野

请我喝杯咖啡吧~