From 41ca381b0e99c134d44d7b08a02c69dc20acdfa7 Mon Sep 17 00:00:00 2001 From: Timoses Date: Tue, 24 Dec 2024 16:19:48 +0100 Subject: [PATCH] Fix documentation of Fragments --- content/en/methods/page/Fragments.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/en/methods/page/Fragments.md b/content/en/methods/page/Fragments.md index 7bcad1ef92..0bc6b651ce 100644 --- a/content/en/methods/page/Fragments.md +++ b/content/en/methods/page/Fragments.md @@ -28,14 +28,15 @@ Use the `Fragments` method on a `Page` object to create a table of contents with ## Methods Headings -: (`map`) A nested map of all headings on the page. Each map contains the following keys: `ID`, `Level`, `Title` and `Headings`. To inspect the data structure: +: (`slice`) A slice of maps of all headings on the page, with first-level keys for each heading. Each map contains the following keys: `ID`, `Level`, `Title` and `Headings`. To inspect the data structure: ```go-html-template
{{ debug.Dump .Fragments.Headings }}
``` + HeadingsMap -: (`slice`) A slice of maps of all headings on the page, with first-level keys for each heading. Each map contains the following keys: `ID`, `Level`, `Title` and `Headings`. To inspect the data structure: +: (`map`) A nested map of all headings on the page. Each map contains the following keys: `ID`, `Level`, `Title` and `Headings`. To inspect the data structure: ```go-html-template
{{ debug.Dump .Fragments.HeadingsMap }}