Linux 软件免费装

Axismundi Table of Contents

开发者 kimjiwoon
更新时间 2026年7月19日 01:07
PHP版本: 8.1 及以上
WordPress版本: 7.0
版权: GPL-3.0-or-later
版权网址: 版权信息

标签

navigation block headings table of contents toc

下载

0.1.2

详情介绍:

Axismundi Table of Contents provides the axismundi/toc block: a dynamic, server-rendered list built from the current post's headings, with a scroll-spy that marks the section you are reading. The block render and a render_block_core/post-content filter share one deterministic slug function, so the table-of-contents anchors always match the heading ids — regardless of render order or where you place the block (a template aside or inside the content). Author-provided HTML anchors are respected, and duplicate headings are de-duplicated (-2, -3).

安装:

  1. Install and activate the Axismundi theme (for the Material Design 3 skin; the block also works under any theme that styles .toc-list / .is-current).
  2. Upload and activate this plugin.
  3. Add the Table of Contents block where you want it — typically a sidebar aside in the single-post template, or inside a Details block above the content.

常见问题:

Does this plugin require an external service?

No. The table of contents is built on the server from the post's own headings.

How are the heading ids created?

From the heading text via sanitize_title(), de-duplicated in document order. If a heading already has an HTML anchor, that id is kept. The same function feeds the block and the heading-id injection, so the anchors always resolve.

Does it work with non-Latin headings?

Yes. Non-ASCII headings (for example Korean) are percent-encoded into the same value on both the heading id and the table-of-contents link, and the scroll-spy matches them literally.

更新日志:

0.1.2 0.1.1 0.1.0