1. 在source目录下放文件或文件夹,在hexo中需要在_config.yml中设置:

    1
    2
    3
    4
    post_asset_folder: true
    marked:
    prependRoot: true
    postAsset: true

    那么,里面的东西就会放到网站中。本地的source目录就成了网站中的根目录(跟在主机名后面)

  2. 让hexo不渲染某个目录下的所有文件(在这里放Jupyter Notebook的html文件)把,在hexo中需要在_config.yml中设置

    1
    skip_render: "Jupyter_notebook/**"
  3. 那么Jupyter Notebook的html文件就发布到网站中了

    例如:

    1
    [notebook](https://ferrychan666.github.io/Jupyter_notebook/world_colleges.html)