Norwegian Polka Music

    gitbook-plugin-meta

    0.1.12 • Public • Published

    gitbook-plugin-meta

    npm npm npm

    Add meta data to <head> for your gitbooks.

    Config

    In your gitbook.json, add this plugin:

    {
        "plugins": [
            "meta"
        ]
    }

    And add/edit the config:

    {
        "plugins": [
            "meta"
        ],
        "pluginsConfig": {
            "meta": {
                "name": "apple-mobile-web-app-capable",
                "content": "yes"
            }
        }
    }

    Then you will see <meta name="apple-mobile-web-app-capable" content="yes"> in the <head> section of your book.

    If you have multiple metadata to add, then you can:

    {
        "plugins": [
            "meta"
        ],
        "pluginsConfig": {
            "meta": {
                "data": [
                    {
                        "name": "name1",
                        "content": "content1",
                        "extra": "Any information"
                    },
                    {
                        "name": "name2",
                        "content": "content2"
                    },
                ]
            }
        }
    }

    data is an array of objects, in which each object has the keys 'name' and 'content'.

    See gitbook.json for a real example.

    Keywords

    none

    Install

    npm i gitbook-plugin-meta

    DownloadsWeekly Downloads

    0

    Version

    0.1.12

    License

    GPL-3.0

    Last publish

    Collaborators

    • cyberzhg