summaryrefslogtreecommitdiffstats
path: root/docs/content/en/content-management/toc.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/content-management/toc.md')
-rw-r--r--docs/content/en/content-management/toc.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/en/content-management/toc.md b/docs/content/en/content-management/toc.md
index 6cb8e55bf..d136972cc 100644
--- a/docs/content/en/content-management/toc.md
+++ b/docs/content/en/content-management/toc.md
@@ -47,7 +47,7 @@ The built-in `.TableOfContents` variables outputs a `<nav id="TableOfContents">`
## Template Example: Basic TOC
-The following is an example of a very basic [single page template][]:
+The following is an example of a very basic [single page template]:
{{< code file="layout/_default/single.html" download="single.html" >}}
{{ define "main" }}
@@ -67,7 +67,7 @@ The following is an example of a very basic [single page template][]:
## 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` (see [Page Variables][pagevars]) 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" >}}
{{ if and (gt .WordCount 400 ) (.Params.toc) }}