ref: be4a404f28f11465a20890b22f80832bdf7959f2
parent: be71fda559605ddf91c071431981f8e1f4d57598
author: bep <[email protected]>
date: Fri May 22 16:46:09 EDT 2015
docs: add ToC to some more pages
--- a/docs/content/content/archetypes.md
+++ b/docs/content/content/archetypes.md
@@ -7,6 +7,7 @@
prev: /content/types
title: Archetypes
weight: 50
+toc: true
---
Hugo v0.11 introduced the concept of a content builder. Using the
--- a/docs/content/content/front-matter.md
+++ b/docs/content/content/front-matter.md
@@ -9,6 +9,7 @@
prev: /content/organization
title: Front Matter
weight: 20
+toc: true
---
The **front matter** is one of the features that gives Hugo its strength. It enables
@@ -25,7 +26,7 @@
[YAML]: http://www.yaml.org/ "YAML Ain't Markup Language"
[JSON]: http://www.json.org/ "JavaScript Object Notation"
-### TOML Example
+## TOML Example
+++
title = "spf13-vim 3.0 release and new website"
@@ -41,7 +42,7 @@
Content of the file goes Here
-### YAML Example
+## YAML Example
---
title: "spf13-vim 3.0 release and new website"
@@ -56,7 +57,7 @@
Content of the file goes Here
-### JSON Example
+## JSON Example
{
"title": "spf13-vim 3.0 release and new website",
--- a/docs/content/content/organization.md
+++ b/docs/content/content/organization.md
@@ -10,6 +10,7 @@
prev: /overview/source-directory
title: Content Organization
weight: 10
+toc: true
---
Hugo uses Markdown files with headers commonly called the *front matter*. Hugo
--- a/docs/content/content/types.md
+++ b/docs/content/content/types.md
@@ -8,6 +8,7 @@
prev: /content/sections
title: Content Types
weight: 40
+toc: true
---
Hugo has full support for different types of content. A content type can have a
--- a/docs/content/taxonomies/displaying.md
+++ b/docs/content/taxonomies/displaying.md
@@ -10,6 +10,7 @@
prev: /taxonomies/usage
title: Displaying Taxonomies
weight: 20
+toc: true
---
There are four common ways you can display the data in your
--- a/docs/content/taxonomies/ordering.md
+++ b/docs/content/taxonomies/ordering.md
@@ -11,6 +11,7 @@
prev: /taxonomies/templates
title: Ordering Taxonomies
weight: 60
+toc: true
---
Hugo provides the ability to both:
@@ -22,7 +23,7 @@
## Ordering Taxonomies
Taxonomies can be ordered by either alphabetical key or by the number of content pieces assigned to that key.
-### Order Alphabetically Example:
+### Order Alphabetically Example
<ul>
{{ $data := .Data }}
@@ -31,7 +32,7 @@
{{ end }}
</ul>
-### Order by Popularity Example:
+### Order by Popularity Example
<ul>
{{ $data := .Data }}
--- a/docs/content/templates/content.md
+++ b/docs/content/templates/content.md
@@ -10,6 +10,7 @@
prev: /templates/variables
title: Single Content Template
weight: 30
+toc: true
---
The primary view of content in Hugo is the single view. Hugo, for every
@@ -61,7 +62,7 @@
single.html
-## post/single.html
+### post/single.html
This content template is used for [spf13.com](http://spf13.com/).
It makes use of [partial templates](/templates/partials/)
@@ -109,7 +110,7 @@
{{ partial "footer.html" . }}
-## project/single.html
+### project/single.html
This content template is used for [spf13.com](http://spf13.com/).
It makes use of [partial templates](/templates/partials/)
--- a/docs/content/templates/go-templates.md
+++ b/docs/content/templates/go-templates.md
@@ -10,6 +10,7 @@
prev: /templates/overview
title: Go Template Primer
weight: 15
+toc: true
---
Hugo uses the excellent [Go][] [html/template][gohtmltemplate] library for
--- a/docs/content/templates/list.md
+++ b/docs/content/templates/list.md
@@ -10,6 +10,7 @@
prev: /templates/content
title: Content List Template
weight: 40
+toc: true
---
A list template is any template that will be used to render multiple pieces of
--- a/docs/content/templates/overview.md
+++ b/docs/content/templates/overview.md
@@ -12,6 +12,7 @@
prev: /themes/creation
title: Hugo Templates
weight: 10
+toc: true
---
Hugo uses the excellent Go html/template library for its template engine.
--- a/docs/content/templates/partials.md
+++ b/docs/content/templates/partials.md
@@ -9,6 +9,7 @@
prev: /templates/views
title: Partial Templates
weight: 80
+toc: true
---
In practice, it's very convenient to split out common template portions into a
--- a/docs/content/templates/rss.md
+++ b/docs/content/templates/rss.md
@@ -11,6 +11,7 @@
prev: /templates/partials
title: RSS (feed) Templates
weight: 90
+toc: true
---
Like all other templates, you can use a single RSS template to generate all of your RSS feeds, or you can create a specific template for each individual feed.
--- a/docs/content/templates/terms.md
+++ b/docs/content/templates/terms.md
@@ -12,6 +12,7 @@
prev: /templates/homepage
title: Taxonomy Terms Template
weight: 60
+toc: true
---
A unique template is needed to create a list of the terms for a given
--- a/docs/content/templates/variables.md
+++ b/docs/content/templates/variables.md
@@ -11,6 +11,7 @@
prev: /templates/functions
title: Template Variables
weight: 20
+toc: true
---
Hugo makes a set of values available to the templates. Go templates are context based. The following
--- a/docs/content/templates/views.md
+++ b/docs/content/templates/views.md
@@ -9,6 +9,7 @@
prev: /templates/terms
title: Content Views
weight: 70
+toc: true
---
In addition to the [single content template](/templates/content/), Hugo can render alternative views of
--- a/docs/content/themes/customizing.md
+++ b/docs/content/themes/customizing.md
@@ -7,6 +7,7 @@
prev: /themes/usage
title: Customizing a Theme
weight: 40
+toc: true
---
_The following are key concepts for Hugo site customization. Hugo permits you to **supplement or override** any theme template or static file, with files in your working directory._
--- a/docs/content/tutorials/mathjax.md
+++ b/docs/content/tutorials/mathjax.md
@@ -7,6 +7,7 @@
next: /tutorials/migrate-from-jekyll
prev: /tutorials/installing-on-windows
title: MathJax Support
+toc: true
weight: 10
---