canonical-link

README

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

Configuration

Setting Description Type Allowed values
baseURL
required
String
-

Plugin


Latest: 2.0.3

1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 2.0.0, 2.0.1, 2.0.2, 2.0.3,

Requirements

GitBook
1.0.2 >2.x.x
1.0.3 >=2.5.0
1.0.5 >=2.0.0
2.0.3 *

Maintainers

Open on NPM