Skip to content

Commit

Permalink
Fix documentation of Fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
Timoses authored Dec 24, 2024
1 parent 73a6cd9 commit 41ca381
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions content/en/methods/page/Fragments.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<pre>{{ debug.Dump .Fragments.Headings }}</pre>
```


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
<pre>{{ debug.Dump .Fragments.HeadingsMap }}</pre>
Expand Down

0 comments on commit 41ca381

Please sign in to comment.