为github博客添加license
如何为github博客添加license呢?
1.添加license
在source/_includes/post目录创建license.html,内容如下:
|
|
2.为每篇文章添加license.html
在source/_layouts/post.html为每篇文章添加license.html,在article->footer->p标签下
修改如下:
3. 修改_config.yml文件,对license的支持.
post_license: true # Post License
效果如下: