0.1.12 • Published 9 years ago
gitbook-plugin-meta v0.1.12
gitbook-plugin-meta
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.