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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.12
    42
    • latest

Version History

Package Sidebar

Install

npm i gitbook-plugin-meta

Weekly Downloads

42

Version

0.1.12

License

GPL-3.0

Last publish

Collaborators

  • cyberzhg