0.1.12 • Published 10 years ago

gitbook-plugin-meta v0.1.12

Weekly downloads
16
License
GPL-3.0
Repository
github
Last release
10 years ago

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.

0.1.12

10 years ago

0.1.10

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago