DisqusJs

view/comment/disqusjs~ DisqusJs

DisqusJS comment JSX component.

Constructor

new DisqusJs()

Source:
See:
Example
<DisqusJs
    shortname="******"
    apiKey="******"
    api="******"
    admin="******"
    adminLabel={false}
    nesting={4}
    disqusId="******"
    path="/path/to/page"
    permalink="/page/permanent/path"
    pageTitle="******"
    siteTitle="******"
    jsUrl="/path/to/disqus.js"
    cssUrl="/path/to/disqusjs.css" />

Members

(static) Cacheable

Cacheable DisqusJS comment JSX component.

This class is supposed to be used in combination with the locals hexo filter (module:hexo/filter/locals).

Source:
See:
Example
<DisqusJs.Cacheable
    comment={{
        shortname: '******',
        api_key: '******',
        api: '******',
        admin: '******',
        admin_label: false,
        nesting: 4
    }}
    page={{
        path: '/path/to/page',
        disqusId: '******',
        permalink: '******'
        title: '******'
    }}
    config={{ title: '******' }}
    helper={{ cdn: function() { ... } }} />