Hexo记录

Hexo 常用命令

1
2
3
hexo new post “新blog名”       创建新blog
hexo clean 清除缓存
hexo d -g 生成及部署至github

文内图片引用

  • 站点配置文件,关键字:post_asset_folder

    1
    post_asset_folder: true
  • 执行新建命令时会创建同名文件夹

    1
    $ hexo n <title>
  • 将图片放入同名文件夹下,文章内图片相对引用

    1
    {% asset_img 图片名称.jpg 图片描述 %}

例子

文内超链接

  • 文内超链接

    1
    [TextUrl](https://blog.jyusun.com/)

开启版权声明

  • 主题配置文件下,关键字 creative_commons

    creative_commons:
    license: by-nc-sa
    sidebar: true
    post: true
    language: zh-CN

  • 站点配置文件, 关键字 url 修改为你自己的地址

    1
    url: http://yoursite.com

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×