mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 22:16:02 +00:00
Fix broken link in toc.md to page variables
This commit is contained in:
1 parent
c5e2fa228e
commit
26f8775488
1 file changed
+1
-1
@@ -69,7 +69,7 @@ The following is an example of a very basic [single page template][]:
|
|||||||
|
|
||||||
## Template Example: TOC Partial
|
## Template Example: TOC Partial
|
||||||
|
|
||||||
The following is a [partial template][partials] that adds slightly more logic for page-level control over your table of contents. It assumes you are using a `toc` field in your content's [front matter][] that, unless specifically set to `false`, will add a TOC to any page with a [`.WordCount`][] greater than 400. This example also demonstrates how to use [conditionals][] in your templating:
|
The following is a [partial template][partials] that adds slightly more logic for page-level control over your table of contents. It assumes you are using a `toc` field in your content's [front matter][] that, unless specifically set to `false`, will add a TOC to any page with a `.WordCount` (see [Page Variables][pagevars]) greater than 400. This example also demonstrates how to use [conditionals][] in your templating:
|
||||||
|
|
||||||
{{% code file="layouts/partials/toc.html" download="toc.html" %}}
|
{{% code file="layouts/partials/toc.html" download="toc.html" %}}
|
||||||
```html
|
```html
|
||||||
|
|||||||
Reference in new issue
Block a user