SimpleTOC – Table of Contents Block

Beskrivning

In Gutenberg, add a block and search for ”SimpleTOC” or just ”TOC”. You need to save your post before you add the block. It works by parsing the post content and retrieving the heading blocks and creates a new dynamic block with a list of links to the headings.

Features

  • Designed for Gutenberg.
  • Compatible with AMP plugins.
  • Minimal and valid HTML output.
  • Inherits the style of your theme.
  • Control the maximum depth of the headings.
  • SEO friendly: Disable the h2 heading of the TOC block and add your own.
  • No javascript or css added.
  • Comes with English, French, Spanish, German, and Brazilian Portuguese translations.
  • Rank Math support.

This plugin is forked from https://github.com/pdewouters/gutentoc by pdewouters and uses code from https://github.com/shazahm1/Easy-Table-of-Contents by shazahm1

Many thanks to Tom J Nowell https://tomjn.com and and Sally CJ who both helped me a lot with my questions over at wordpress.stackexchange.com

Skärmdumpar

  • SimpleTOC block in Gutenberg editor.
  • SimpleTOC in the post.
  • Disable "Table of contents" block headings´.

Block

Detta tillägg erbjuder 1 block.

  • SimpleTOC

Installation

SimpleTOC can be found and installed via the Plugin menu within WordPress administration (Plugins -> Add New). Alternatively, it can be downloaded from WordPress.org and installed manually…

In Gutenberg, add a block and search for ”SimpleTOC” or just ”TOC”. Please save your content before you use the block.

Recensioner

12 januari, 2021
Glad i found this plugin, not only does it work on AMP pages it does not load CSS/JS unlike what i previously used. Thanks for this great plugin.
6 januari, 2021
Most others offer Classic and gutenberg options. I just needed Gutenberg block which would automatically create anchor tags. This works perfect. Now Rankmath recognizes it. Thank you
3 januari, 2021
Exactly what I was after. A simple table of contents plugin that's AMP compatible. Thanks for the great work! Nathan
2 januari, 2021
The plugin is excellent, it is the only free plugin that supports AMP. In addition, the developer does a good job in developing the plugin.
Läs alla 9 betyg

Bidragsgivare och utvecklare

”SimpleTOC – Table of Contents Block” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.

Bidragande personer

”SimpleTOC – Table of Contents Block” har översatts till 7 språk. Tack till översättarna för deras bidrag.

Översätt ”SimpleTOC – Table of Contents Block” till ditt språk.

Intresserad av programutveckling?

Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.

Ändringslogg

4.1.1

  • Feature: Experimental support for Arabic Text.

4.0.4

  • Fix: Removed unnecessary debug message.

4.0.3

  • Fix: Removed unnecessary p tag in Block Editor.

4.0.2

  • Fix: Block forgot its settings on reload in Gutenberg.

4.0.1

  • Fix: TOC Headline could not be disabled anymore.

4.0

  • Added option to set maximum level of the headings.

3.9

  • Option to disable block heading added.
  • Enhanced the localization strings.
  • Added Brazilian Portuguese translations to the translations. Thanks Ralden Souza!

3.6

  • Code refactoring: moved to JSX and updates dependencies. Makes the code much smaller and easier to read for humans.
  • Better contrast for logo within Gutenberg.

3.5

  • Added support for Rank Math plugin.