
內容簡介
在您的文章和頁面中加入目錄區塊。該 TOC 是包含文章或頁面中所有標題的嵌套連結列表。只需添加一個區塊並搜索“SimpleTOC”或“TOC”即可使用它。
toc 的最大深度可以在區塊的側邊欄中進行配置,並提供了許多其他選項。可以隱藏標題“目錄”,並使用常規標題區塊添加您自己的標題。
SimpleTOC 是開源的,並在 GitHub Pages 上開發。如果您發現錯誤或有功能上的建議,請隨時貢獻並創建一個 pull request。
使用 SimpleTOC 插件快速建立新的 WordPress 實例。
功能
零配置:只需將 SimpleTOC 區塊添加到您的文章中即可。
最小且有效的 HTML 輸出。
未添加 JavaScript 或 CSS。除非您啟用手風琴菜單。
為 Gutenberg 設計。
使用 Gutenberg 的原生組樣式選項對 SimpleTOC 進行設置。
繼承您的主題風格。
使用 CSS 實現平滑滾動效果。
翻譯成多種語言,包括德語、日語、中文(台灣)、荷蘭語、巴西葡萄牙語、法語、西班牙語和拉脫維亞語。
自定義
使用 Gutenberg 組進行背景和文本顏色設置。
原生區塊支持寬屏和全屏。
控制標題的最大深度。
選擇有序、無序 HTML 列表,或使用縮進列表。
選擇標題級別或將其轉換為段落。
禁用 TOC 區塊的 h2 標題,並添加您自己的標題。
兼容性
支持 GeneratePress 和 Rank Math。
適用於常用的 AMP 插件。
學分
此插件是從 pdewouters 分叉而來,並使用了 Easy-Table-of-Contents 的代碼。
非常感謝 Tom J Nowell 和 Sally CJ,在 wordpress.stackexchange.com 上回答我的問題時給了我很多幫助。
感謝 Quintus Valerius Soranus 在公元前 100 年發明了目錄。
外掛標籤
開發者團隊
② 後台搜尋「SimpleTOC – Table of Contents Block」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
Add a Table of Contents block to your posts and pages. The TOC is a nested list of links to all heading found in the post or page. To use it, simply add a block and search for “SimpleTOC” or just “TOC”.
The maximum depth of the toc can be configured in in the blocks’ sidebar among many other options. There can hide the headline “Table of Contents” and add your own by using a normal heading block.
Spin up a new WordPress instance with the SimpleTOC plugin already installed.
User Feedback
“It is lightweight, stable, and fully compatible with WordPress Full Site Editing. A reliable solution that integrates seamlessly and performs exactly as expected.”
— @js100 on wordpress.org
“Does the job perfectly, and adds no bloat.”
— @clicknathan on wordpress.org
“Simple yet powerful. Great plugin that does exactly what you need.”
— @mixey on wordpress.org
Accessibility
This plugin is designed & developed for WCAG 2.2 level AA conformance. The plugin is tested with assistive technology and intended to be accessible, however some third party plugins or themes may affect the individual accessibility on a given website. If you find an accessibility issue, please let us know and we’ll try to address it promptly.
Features
Designed for Gutenberg.
Zero configuration: Add the SimpleTOC block to your post and that’s it.
Minimal and valid HTML output.
Utilizes the browser’s built-in details tag for a collapsible interface.
No JavaScript or CSS added. Unless you activate the accordion menu.
Style SimpleTOC with Gutenberg’s native group styling options.
Inherits the style of your theme.
Smooth scrolling effect using CSS.
Accessibility built-in by following web standards.
Optional ARIA Label and navigation role attributes.
Translated in multiple languages. Including German, Japanese, Chinese (Taiwan), Dutch, Brazilian Portuguese, French, Spanish and Latvia.
Ideal for creating a Frequently Asked Questions section on your website.
Customization
Administrators can utilize global settings to supersede the individual block settings.
Add background and text color with Gutenberg groups.
Native block support for wide and full width.
Control the maximum depth of the headings.
Choose between an ordered, bullet HTML list. Or indent the list.
Select a heading level or turn it into a paragraph.
Disable the h2 heading of the TOC block and add your own.
Compatibility
GeneratePress and Rank Math support.
Works with popular AMP plugins.
How to contribute
SimpleTOC is open-source and developed on GitHub Pages. If you find a bug or have an idea for a feature please feel free to contribute and create a pull request.
Credits
This plugin is forked from pdewouters and uses code from Easy-Table-of-Contents
Many thanks to Tom J Nowell and and Sally CJ who both helped me a lot with my questions over at wordpress.stackexchange.com
And many more thanks to all the developers on GitHub who helped me making SimpleTOC what it is today!
Thanks to Quintus Valerius Soranus for inventing the Table of Contents around 100 BC.
