Hexo 博客可以声明许可协议,在 creativecommons 网站上找适合自己的许可。
常用的许可协议如下:
- CC BY(署名)
- CC BY-SA(署名-相同方式共享)
- CC BY-ND(署名-禁止演绎)
- CC BY-NC(署名-非商业性使用)
- CC BY-NC-SA(署名-非商业性使用-相同方式共享 )
- CC BY-NC-ND(署名-非商业性使用-禁止演绎)
关于以上协议的解释详见 https://creativecommons.org/licenses/ 。
本博客计划使用 CC BY-SA 协议。
关于CC BY-SA协议
You are free to:
Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
Under the following terms:
Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
简单的说, CC BY-SA 协议允许其它人下载、发行、修改,即使是出于商业目的,但必须给出原创出处并指明原创身份,他人发行此作品采取的许可必须和原创作者采取的许可相同。
设置网站的许可协议
修改主题配置文件 /d/hexo/themes/next/_config.yml 如下参数:
1 | # Declare license on posts |
之后刷新博客,如下。
1 | hexo g |
验证
之后博客的每篇文章的底部显示许可信息,如下: