Skip to content

Releases: Sommerregen/grav-plugin-toc

Grav Plugin Toc v1.4.1

12 Jun 17:53
v1.4.1
a85ceee
Compare
Choose a tag to compare

Bugfix:

  • Fixed new slug.granularity option in toc.yaml and README.md

Grav Plugin Toc v1.4.0

12 Jun 17:45
v1.4.0
27ca1a3
Compare
Choose a tag to compare

New:

  • Added new active setting that supersedes process option
  • Added slug.granularity option for slug generation
  • Added and expose TOC generation (see #8)

Improved:

  • Add a "headeranchor" class to the hx tag (thanks to @Lamecarlate)
  • Moved template to new plugin template location
  • Improved styling of code elements in table of contents
  • Expose more plugin strings for translations
  • Strip tags in title attributes
  • Dropped iconv dependency

Bugfix:

  • Fixed {{ page.content|toc }} not working #8
  • Fixed issue with quote boxes that broke links in TOC #10
  • Fixed error on multilingual site #13 & #14
  • Fixed undefined offset error in [MINITOC] #12 & #15

Grav Plugin Toc v1.3.1

24 Oct 19:18
Compare
Choose a tag to compare

Improved:

  • Do not render TOC if it is empty. #6 & #7

Bugfix:

  • Fixed #5 (Fix typo in README.md)

Grav Plugin Toc v1.3.0

24 Sep 19:02
Compare
Choose a tag to compare

New:

  • Added more blueprints for Grav Admin plugin

Improved:

  • Added configuration options for slug generation #4
  • Added better fallback for slug generation when iconv module is not installed on the server

Bugfix:

  • Fixed #3 (Twig filter not working in twig template)

Grav Plugin Toc v1.2.1

09 Sep 19:31
Compare
Choose a tag to compare

Improved:

  • Added blueprints for Grav Admin plugin
  • Document PHP iconv Requirement #1

Bugfix:

  • Fixed #2 (Not working with Grav's Admin Panel)
  • Fixed broken TOC after caching pages

Grav Plugin Toc v1.2.0

08 Aug 13:55
Compare
Choose a tag to compare

New:

  • Added admin configurations (requires Grav 0.9.34+)
  • Added multi-language support (requires Grav 0.9.33+)
  • Added placement, visible, icon and class option to customize anchor look
  • Added buitlin CSS class to suppress anchor links with the no-anchor class
  • Added {{% toc %}} shortcode

Improved:

  • Switched to onBuildPagesInitialized event (requires Grav 0.9.29+)
  • Improved and use language translation for language specific slug generation (requires Grav 0.9.34+)
  • Updated README.md

Bugfix:

  • Strip tags in title attribute
  • Normalize tags in TOC (see <code> element)
  • Ignore empty headings

Grav Plugin Toc v1.1.0

08 Aug 13:56
Compare
Choose a tag to compare

Improved:

  • Improved anchorlinks generation
  • Truncate headings to a maximum width of 32 chars in TOC and MINITOC
  • Corrected spelling and markup in README.md

Grav Plugin Toc v1.0.0

10 May 19:26
Compare
Choose a tag to compare

Release Issues Dual license Flattr PayPal

This plugin automagically generates a (minified) Table of Contents based on special markers in the document and adds it into the resulting HTML document.

About

Toc is a plugin for Grav used to generate Table of Contents from a Markdown document based on special markers. The markers are [TOC] and [MINITOC], where the latter can be used for a (minified) Table of Contents to give an overview of the current content of the section. By default, the Table of Contents links to the contents (anchorlinks) and adds visible permanent links (permalinks) to all headers. Further, all headers will automatically have unique id attributes generated based upon the text of the header. See how it looks like:

Screenshot Toc Plugin