1.0.0 • Published 4 years ago

saika-plugin-disqus v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

saika-plugin-disqus

Using Disqus in saika

Please consider starring the project to show your ❤️ and support.

NPM version jsDelivr hits CircleCI License donate

Usage

Load this plugin via <script> tag:

<!-- Load this plugin after saika.js -->
<script src="https://cdn.jsdelivr.net/npm/saika-plugin-disqus"></script>

This plugin is exposed as window.saikaDisqus:

new Saika({
  plugins: [
    saikaDisqus({
      shortname: 'your shortname'
    })
  ]
})

Options

options.shortname

  • Type: string
  • Required: true

Disqus shortname.

options.enablePaths

  • Type: Array<PathLike>
  • Default: ['/posts'] which means is all link starts with /posts will enable disqus

Specify your post to enable disqus.

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

Author

saika-plugin-disqus © evillt, Released under the MIT License.

Authored and maintained by EVILLT with help from contributors (list).

evila.me · GitHub @evillt · Twitter @evillt