Home

Awesome

<h1 align="center">plugin-copy-add</h1> <p align="center"> <img src="https://img.shields.io/badge/dynamic/yaml?color=59b7ff&style=for-the-badge&label=Version&query=$.spec.version&url=https://raw.githubusercontent.com/turka-cn/plugin-copy-add/master/src/main/resources/plugin.yaml" alt="version" /> <img src="https://shields.io/badge/Halo-2.x+-59b7ff?style=for-the-badge" alt="halo" /> <img src="https://shields.io/badge/License-MIT-green?style=for-the-badge" alt="license" /> </p>

适用于 Halo2.x 全系列的复制追加插件,可在站点复制文本的时候自动追加一段内容,比如说版权提示

目前功能

使用和设置方法

<img src="https://upload-cdn.turka.cn/picture/copyadd-intro-1.png"/>

目前支持的占位符

占位符作用
#url当前页面的url,如https://foo.cn/archives/foo-bar
#site站点域名,如foo.cn

如何开发?

git clone https://github.com/turka-cn/plugin-copy-add

cd path/to/plugin-copy-add

./gradlew build

# Windows
./gradlew.bat build

别忘了修改 Halo 配置文件:

halo:
  plugin:
    runtime-mode: development
    fixedPluginPath:
      - "/path/to/plugin-copy-add"

结尾

插件为业余时间开发,难免有些小小的问题和不足之处,所以也欢迎来提Issues或者帮忙交PR喔!

——(。ò ∀ ó。)