hexo添加插件

  • 使用npm安装插件

    1
    npm install hexo-generator-feed
  • 在配置文件中引用插件

    1
    2
    3
    在hexo/_config.yml添加  
    plugins:
    -hexo-generator-feed

添加Sitemap

  • 使用npm安装插件

    1
    npm install hexo-generator-sitmap
  • 在配置文件中引用插件

    1
    2
    3
    在hexo/_config.yml中添加  
    plugins:
    - hexo-generator-sitemap

添加Hexo-url-image

  • 使用npm安装插件

    1
    npm install hexo-url-image --sav 大专栏  hexo添加插件e
  • 配置

    1
    2
    3
    4
    5
    在_config.yml中设置image_server_url字段
    ...
    #URL
    image_server_url: http://some.bkt.couddn.com/
    ...

添加代码高亮插件

  • 使用npm安装

    1
    nmp install hexo-tag-vimhighlight --save
  • 配置

    1
    2
    3
    在hexo/_config.yml中添加  
    plugins:
    - hexo-tag-vimhighlight
  • 使用

    1
    2
    3
    {% vimhl python true %}   //true --> show line number
    ...
    {% endvimhl %}

猜你喜欢

转载自www.cnblogs.com/liuzhongrong/p/12263041.html