Gitalk

view/comment/gitalk~ Gitalk

Gitalk comment JSX component.

Constructor

new Gitalk()

Source:
See:
Example
<Gitalk
    id="******",
    repo="******",
    owner="******",
    admin={["******"]},
    clientId="******",
    clientSecret="******",
    createIssueManually={false},
    distractionFreeMode={false},
    pagerDirection="last",
    perPage={10},
    proxy="******",
    flipMoveOptions={...},
    enableHotKey={true},
    language="zh-CN",
    jsUrl="/path/to/gitalk.js",
    cssUrl="/path/to/gitalk.css" />

Members

(static) Cacheable

Cacheable Gitalk comment JSX component.

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

Source:
See:
Example
<Gitalk.Cacheable
    comment={{
        repo: '******',
        owner: '******',
        admin: ['******'],
        client_id: '******',
        client_secret: '******',
        create_issue_manually: false,
        distraction_free_mode: false,
        pager_direction: 'last',
        per_page: 10,
        proxy: '******',
        flip_move_options: {...},
        enable_hotkey: true,
        language: 'zh-CN'
    }}
    page={{ path: '/path/to/page' }}
    helper={{ cdn: function() {...} }} />