docs: add ToC to some more pages

This commit is contained in:
bep 2015-05-22 20:46:09 +02:00
parent be71fda559
commit be4a404f28
17 changed files with 24 additions and 7 deletions

View file

@ -7,6 +7,7 @@ next: /content/ordering
prev: /content/types prev: /content/types
title: Archetypes title: Archetypes
weight: 50 weight: 50
toc: true
--- ---
Hugo v0.11 introduced the concept of a content builder. Using the Hugo v0.11 introduced the concept of a content builder. Using the

View file

@ -9,6 +9,7 @@ next: /content/sections
prev: /content/organization prev: /content/organization
title: Front Matter title: Front Matter
weight: 20 weight: 20
toc: true
--- ---
The **front matter** is one of the features that gives Hugo its strength. It enables The **front matter** is one of the features that gives Hugo its strength. It enables
@ -25,7 +26,7 @@ Supported formats:
[YAML]: http://www.yaml.org/ "YAML Ain't Markup Language" [YAML]: http://www.yaml.org/ "YAML Ain't Markup Language"
[JSON]: http://www.json.org/ "JavaScript Object Notation" [JSON]: http://www.json.org/ "JavaScript Object Notation"
### TOML Example ## TOML Example
+++ +++
title = "spf13-vim 3.0 release and new website" title = "spf13-vim 3.0 release and new website"
@ -41,7 +42,7 @@ Supported formats:
Content of the file goes Here Content of the file goes Here
### YAML Example ## YAML Example
--- ---
title: "spf13-vim 3.0 release and new website" title: "spf13-vim 3.0 release and new website"
@ -56,7 +57,7 @@ Supported formats:
Content of the file goes Here Content of the file goes Here
### JSON Example ## JSON Example
{ {
"title": "spf13-vim 3.0 release and new website", "title": "spf13-vim 3.0 release and new website",

View file

@ -10,6 +10,7 @@ next: /content/front-matter
prev: /overview/source-directory prev: /overview/source-directory
title: Content Organization title: Content Organization
weight: 10 weight: 10
toc: true
--- ---
Hugo uses Markdown files with headers commonly called the *front matter*. Hugo Hugo uses Markdown files with headers commonly called the *front matter*. Hugo

View file

@ -8,6 +8,7 @@ next: /content/archetypes
prev: /content/sections prev: /content/sections
title: Content Types title: Content Types
weight: 40 weight: 40
toc: true
--- ---
Hugo has full support for different types of content. A content type can have a Hugo has full support for different types of content. A content type can have a

View file

@ -10,6 +10,7 @@ next: /taxonomies/templates
prev: /taxonomies/usage prev: /taxonomies/usage
title: Displaying Taxonomies title: Displaying Taxonomies
weight: 20 weight: 20
toc: true
--- ---
There are four common ways you can display the data in your There are four common ways you can display the data in your

View file

@ -11,6 +11,7 @@ next: /taxonomies/methods
prev: /taxonomies/templates prev: /taxonomies/templates
title: Ordering Taxonomies title: Ordering Taxonomies
weight: 60 weight: 60
toc: true
--- ---
Hugo provides the ability to both: Hugo provides the ability to both:
@ -22,7 +23,7 @@ Hugo provides the ability to both:
## Ordering Taxonomies ## Ordering Taxonomies
Taxonomies can be ordered by either alphabetical key or by the number of content pieces assigned to that key. 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> <ul>
{{ $data := .Data }} {{ $data := .Data }}
@ -31,7 +32,7 @@ Taxonomies can be ordered by either alphabetical key or by the number of content
{{ end }} {{ end }}
</ul> </ul>
### Order by Popularity Example: ### Order by Popularity Example
<ul> <ul>
{{ $data := .Data }} {{ $data := .Data }}

View file

@ -10,6 +10,7 @@ next: /templates/list
prev: /templates/variables prev: /templates/variables
title: Single Content Template title: Single Content Template
weight: 30 weight: 30
toc: true
--- ---
The primary view of content in Hugo is the single view. Hugo, for every The primary view of content in Hugo is the single view. Hugo, for every
@ -61,7 +62,7 @@ same as the other types, but the directory must be called "\_default".
single.html single.html
## post/single.html ### post/single.html
This content template is used for [spf13.com](http://spf13.com/). This content template is used for [spf13.com](http://spf13.com/).
It makes use of [partial templates](/templates/partials/) It makes use of [partial templates](/templates/partials/)
@ -109,7 +110,7 @@ It makes use of [partial templates](/templates/partials/)
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
## project/single.html ### project/single.html
This content template is used for [spf13.com](http://spf13.com/). This content template is used for [spf13.com](http://spf13.com/).
It makes use of [partial templates](/templates/partials/) It makes use of [partial templates](/templates/partials/)

View file

@ -10,6 +10,7 @@ next: /templates/ace
prev: /templates/overview prev: /templates/overview
title: Go Template Primer title: Go Template Primer
weight: 15 weight: 15
toc: true
--- ---
Hugo uses the excellent [Go][] [html/template][gohtmltemplate] library for Hugo uses the excellent [Go][] [html/template][gohtmltemplate] library for

View file

@ -10,6 +10,7 @@ next: /templates/homepage
prev: /templates/content prev: /templates/content
title: Content List Template title: Content List Template
weight: 40 weight: 40
toc: true
--- ---
A list template is any template that will be used to render multiple pieces of A list template is any template that will be used to render multiple pieces of

View file

@ -12,6 +12,7 @@ next: /templates/go-templates
prev: /themes/creation prev: /themes/creation
title: Hugo Templates title: Hugo Templates
weight: 10 weight: 10
toc: true
--- ---
Hugo uses the excellent Go html/template library for its template engine. Hugo uses the excellent Go html/template library for its template engine.

View file

@ -9,6 +9,7 @@ next: /templates/rss
prev: /templates/views prev: /templates/views
title: Partial Templates title: Partial Templates
weight: 80 weight: 80
toc: true
--- ---
In practice, it's very convenient to split out common template portions into a In practice, it's very convenient to split out common template portions into a

View file

@ -11,6 +11,7 @@ notoc: one
prev: /templates/partials prev: /templates/partials
title: RSS (feed) Templates title: RSS (feed) Templates
weight: 90 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. 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.

View file

@ -12,6 +12,7 @@ next: /templates/views
prev: /templates/homepage prev: /templates/homepage
title: Taxonomy Terms Template title: Taxonomy Terms Template
weight: 60 weight: 60
toc: true
--- ---
A unique template is needed to create a list of the terms for a given A unique template is needed to create a list of the terms for a given

View file

@ -11,6 +11,7 @@ next: /templates/content
prev: /templates/functions prev: /templates/functions
title: Template Variables title: Template Variables
weight: 20 weight: 20
toc: true
--- ---
Hugo makes a set of values available to the templates. Go templates are context based. The following Hugo makes a set of values available to the templates. Go templates are context based. The following

View file

@ -9,6 +9,7 @@ next: /templates/partials
prev: /templates/terms prev: /templates/terms
title: Content Views title: Content Views
weight: 70 weight: 70
toc: true
--- ---
In addition to the [single content template](/templates/content/), Hugo can render alternative views of In addition to the [single content template](/templates/content/), Hugo can render alternative views of

View file

@ -7,6 +7,7 @@ next: /themes/creation
prev: /themes/usage prev: /themes/usage
title: Customizing a Theme title: Customizing a Theme
weight: 40 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._ _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._

View file

@ -7,6 +7,7 @@ menu:
next: /tutorials/migrate-from-jekyll next: /tutorials/migrate-from-jekyll
prev: /tutorials/installing-on-windows prev: /tutorials/installing-on-windows
title: MathJax Support title: MathJax Support
toc: true
weight: 10 weight: 10
--- ---