From 33d4cf14fde5a41c42ccc270d16612bbf7cd04ee Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Tue, 26 Mar 2019 12:32:48 +0100 Subject: [PATCH] Update table-of-contents.md --- docs/content/documentation/content/table-of-contents.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/documentation/content/table-of-contents.md b/docs/content/documentation/content/table-of-contents.md index 3325b0a..e93c9c0 100644 --- a/docs/content/documentation/content/table-of-contents.md +++ b/docs/content/documentation/content/table-of-contents.md @@ -5,7 +5,7 @@ weight = 60 Each page/section will automatically generate a table of contents for itself based on the headers present. -It is available in the template through `section.toc` and `page.toc`. +It is available in the template through the `toc` variable. You can view the [template variables](./documentation/templates/pages-sections.md#table-of-contents) documentation for information on its structure. @@ -13,7 +13,7 @@ Here is an example of using that field to render a 2-level table of contents: ```jinja2