Socket
Socket
Sign inDemoInstall

apostrophe-toc

Package Overview
Dependencies
6
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    apostrophe-toc

Adds a table of contents widget to the Apostrophe content management system


Version published
Weekly downloads
4
increased by100%
Maintainers
1
Install size
977 kB
Created
Weekly downloads
 

Readme

Source

apostrophe-toc

NPM

apostrophe-toc is a widget for the Apostrophe content management system. Apostrophe TOC lets you display a table of contents generated from the markup of of any text in a given area.

Usage

Configuring the Module

In order to run the Apostrophe TOC widget in your Apostrophe project, you'll need to add it in app.js along with the other modules. There are currently no options for this widget.

modules: {
  apostrophe-toc: {}
}

Including the Widget in your Templates

Now that we've got the widget configured, we can simply add it to our template and use the bundled template in the module. In your page template, simply add "apostrophe-toc" to the controls array in your aposArea call:

{{ aposArea(page, 'main', { controls: [ 'style', 'bold', 'italic', 'toc' ] } ) }}

TO-DO

  • Build it
  • Publish to NPM
  • Build some nice basic styles

Keywords

FAQs

Last updated on 22 Jan 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc