Giscus

view/comment/giscus~ Giscus

Giscus comment JSX component.

Constructor

new Giscus()

Source:
See:
Example
<Giscus
    repo="usr/repo"
    repoId="X_xxxxxxxxxx"
    category="******"
    categoryId="XXX_xxxxxxxxxxxxxxxx"
    mapping="******"
    strict={0}
    reactionsEnabled={0}
    emitMetadata={0}
    inputPosition="******"
    theme="******"
    lang="******"
    lazy="******" />

Members

(static) Cacheable

Cacheable Giscus comment JSX component.

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

Source:
See:
Example
<Giscus.Cacheable
    comment={{
        repo: "usr/repo"
        repoId: "X_xxxxxxxxxx"
        category: "******"
        categoryId: "XXX_xxxxxxxxxxxxxxxx"
        mapping: "******"
        strict: {false}
        reactionsEnabled: {false}
        emitMetadata: {false}
        inputPosition: "******"
        theme: "******"
        lang: "******"
        lazy: "******"
    }} />