gitbook-plugin-canonical-link
Add <link rel="canonical" href={{ config.pluginsConfig['canonical-link'].baseURL }}/{{ file.path }}>
to <head>
Installation
npm install gitbook-plugin-canonical-link
Usage
add to book.json
{
"plugins": [
"canonical-link"
],
"pluginsConfig": {
"canonical-link": {
"baseURL": "http://example.com"
}
}
}
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
MIT