Toc

view/widget/toc~ Toc

Table of contents widget JSX component.

Constructor

new Toc()

Source:
Example
<Toc
    title="Widget title"
    content="HTML content"
    showIndex={true}
    collapsed={true}
    maxDepth={3}
    jsUrl="******" />

Members

(static) Cacheable

Cacheable table of contents widget JSX component.

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

Source:
See:
Example
<Toc.Cacheable
    config={{ toc: true }}
    page={{ layout: 'post', content: 'HTML content' }}
    widget={{ index: true, collapsed: true, depth: 3 }}
    helper={{
        _p: function() {...},
        url_for: function() {...}
    }} /> />