Gitbook 插件安装 - 页脚版权信息

page-footer

gitbook-plugin-page-footer

gitbook plugin url

page-copyright

Install

Add the below to your book.json file, then run gitbook install in book folder:

{
    "plugins": ["page-copyright"]
}

config

book.json

{
    "plugins": [
        "page-copyright"
    ],
    "pluginsConfig": {
        "description": "modified at",
        "signature": "Skylor.min",
        "wisdom": "Designer, Frontend Developer & overall web enthusiast",
        "format": "YYYY-MM-dd hh:mm:ss",
        "copyright": "Copyright © skylor",
        "timeColor": "#666",
        "copyrightColor": "#666",
        "utcOffset": "8",
        "style": "normal",
        "noPowered": false
    }
}

安装并配置页脚版权信息内容

设置book.json如下:

{
    "plugins": [
        "page-copyright",
        "-lunr", "-search", "search-pro",
        "back-to-top-button",
        "chapter-fold",
        "code",
        "splitter"
    ],
    "pluginsConfig": {
        "description": "modified at",
        "signature": "Aron.Li",
        "wisdom": "Designer, Frontend Developer & overall web enthusiast",
        "format": "YYYY-MM-dd hh:mm:ss",
        "copyright": "Copyright © Aron.Li",
        "timeColor": "#666",
        "copyrightColor": "#666",
        "utcOffset": "8",
        "style": "normal",
        "noPowered": false
    }
}

安装插件

$ gitbook install

启动预览服务

$ gitbook serve
Gitbook 插件安装 - 页脚版权信息_第1张图片

运行以后有很多信息是原创作者的,不好用,放弃使用这个。


下面来看看另一个页脚版权的插件

tbfed-pagefooter

插件配置

{
    "plugins": [
       "tbfed-pagefooter"
    ],
    "pluginsConfig": {
        "tbfed-pagefooter": {
            "copyright":"Copyright © zhangjikai.com 2017",
            "modify_label": "该文件修订时间:",
            "modify_format": "YYYY-MM-DD HH:mm:ss"
        }
    }
}

copyright 和 modify_label 支持 html 代码

安装插件

配置book.json如下:

{
    "plugins": [
        "-lunr", "-search", "search-pro",
        "back-to-top-button",
        "chapter-fold",
        "code",
        "splitter",
        "tbfed-pagefooter"
    ],
    "pluginsConfig": {
        "tbfed-pagefooter": {
            "copyright": "Copyright © Aron.Li 2019",
            "modify_label": "该文件修订时间:",
            "modify_format": "YYYY-MM-DD HH:mm:ss"
        }
    }
}

安装

$ gitbook install

启动服务预览

13423234-6147480d6b5ce8d9.png

这个版权的信息就非常简单。

Gitbook 插件安装 - 页脚版权信息_第2张图片

你可能感兴趣的:(Gitbook 插件安装 - 页脚版权信息)