Copyright
一款typecho文章版权插件,支持针对单文章的版权设置功能。
安装插件
将压缩包中的文件夹 Copyright
上传至 typecho
插件目录 typecho/usr/plugins
在 管理端 的插件管理页面启用插件 "Copyright"
在 post.php
中添加调用代码:
// typecho/usr/themes/主题目录/post.php
<?php Copyright_Plugin::Output($this) ?>
将调用代码放置在合适的位置,例如:
<div class="post-content" itemprop="articleBody">
<?php Copyright_Plugin::Output($this) ?>
<?php $this->content(); ?>
</div>
插件设置
插件支持自定义版权选项,并且预置了四个,你可以随意的修改它们,只要符合要求的格式即可。

插件启用后会自动在管理端的文章编辑页面添加一个下拉框:

如果设置的版权 JSON 错误,则会显示相应的提示:

评论区