mirror of
https://github.com/gohugoio/hugo.git
synced 2025-05-02 00:20:21 +03:00
Implementing new menu system in the docs site
This commit is contained in:
parent
9ecf58e29b
commit
11fe227b9e
45 changed files with 214 additions and 155 deletions
|
@ -2,8 +2,10 @@
|
||||||
title: "Contributing to Hugo"
|
title: "Contributing to Hugo"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
aliases: ["/doc/contributing/", "/meta/contributing/"]
|
aliases: ["/doc/contributing/", "/meta/contributing/"]
|
||||||
groups: ["community"]
|
weight: 30
|
||||||
groups_weight: 30
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'community'
|
||||||
---
|
---
|
||||||
|
|
||||||
We welcome all contributions. Feel free to pick something from the roadmap
|
We welcome all contributions. Feel free to pick something from the roadmap
|
||||||
|
|
|
@ -2,9 +2,11 @@
|
||||||
title: "Contributors"
|
title: "Contributors"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
aliases: ["/doc/contributors/", "/meta/contributors/"]
|
aliases: ["/doc/contributors/", "/meta/contributors/"]
|
||||||
groups: ["community"]
|
weight: 40
|
||||||
groups_weight: 40
|
|
||||||
notoc: true
|
notoc: true
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'community'
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo was built with love and Go by:
|
Hugo was built with love and Go by:
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
---
|
---
|
||||||
title: "Mailing List"
|
title: "Mailing List"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
groups: ["community"]
|
weight: 10
|
||||||
groups_weight: 10
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'community'
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo has two mailing lists:
|
Hugo has two mailing lists:
|
||||||
|
|
|
@ -2,9 +2,10 @@
|
||||||
title = "Press, Blogs and Media Coverage"
|
title = "Press, Blogs and Media Coverage"
|
||||||
date = 2014-03-24T20:00:00Z
|
date = 2014-03-24T20:00:00Z
|
||||||
linktitle = "Press"
|
linktitle = "Press"
|
||||||
groups = ["community"]
|
weight = 20
|
||||||
groups_weight = 20
|
|
||||||
notoc = true
|
notoc = true
|
||||||
|
[menu.main]
|
||||||
|
parent = "community"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
Hugo has been featured in the following Blog Posts, Press and Media.
|
Hugo has been featured in the following Blog Posts, Press and Media.
|
||||||
|
|
|
@ -3,8 +3,10 @@ title: "Example Content File"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
aliases: ["/doc/example/"]
|
aliases: ["/doc/example/"]
|
||||||
linktitle: "Example"
|
linktitle: "Example"
|
||||||
groups: ['content']
|
menu:
|
||||||
groups_weight: 50
|
main:
|
||||||
|
parent: 'content'
|
||||||
|
weight: 50
|
||||||
notoc: true
|
notoc: true
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
title = "Front Matter"
|
title = "Front Matter"
|
||||||
date = "2013-07-01"
|
date = "2013-07-01"
|
||||||
aliases = ["/doc/front-matter/"]
|
aliases = ["/doc/front-matter/"]
|
||||||
groups = ["content"]
|
weight = 40
|
||||||
groups_weight = 40
|
|
||||||
|
[menu.main]
|
||||||
|
parent = "content"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
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
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
title: "Ordering Content"
|
title: "Ordering Content"
|
||||||
date: "2014-03-06"
|
date: "2014-03-06"
|
||||||
linktitle: "Ordering"
|
linktitle: "Ordering"
|
||||||
groups: ['content']
|
menu:
|
||||||
groups_weight: 60
|
main:
|
||||||
|
parent: "content"
|
||||||
|
weight: 60
|
||||||
---
|
---
|
||||||
|
|
||||||
In Hugo you have a good degree of control of how your content can be ordered.
|
In Hugo you have a good degree of control of how your content can be ordered.
|
||||||
|
|
|
@ -3,8 +3,10 @@ title: "Content Organization"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
aliases: ["/doc/organization/"]
|
aliases: ["/doc/organization/"]
|
||||||
linktitle: "Organization"
|
linktitle: "Organization"
|
||||||
groups: ['content']
|
weight: 10
|
||||||
groups_weight: 10
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'content'
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo uses markdown files with headers commonly called the front matter. Hugo respects the organization
|
Hugo uses markdown files with headers commonly called the front matter. Hugo respects the organization
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
---
|
---
|
||||||
title: "Sections"
|
title: "Sections"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
groups: ['content']
|
menu:
|
||||||
groups_weight: 20
|
main:
|
||||||
|
parent: 'content'
|
||||||
|
weight: 20
|
||||||
notoc: true
|
notoc: true
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
title: "Content Types"
|
title: "Content Types"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
linktitle: "Types"
|
linktitle: "Types"
|
||||||
groups: ['content']
|
menu:
|
||||||
groups_weight: 30
|
main:
|
||||||
|
parent: 'content'
|
||||||
|
weight: 30
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo has full support for multiple content types each with its own set
|
Hugo has full support for multiple content types each with its own set
|
||||||
|
|
|
@ -5,8 +5,10 @@ aliases:
|
||||||
- /doc/redirects/
|
- /doc/redirects/
|
||||||
- /doc/alias/
|
- /doc/alias/
|
||||||
- /doc/aliases/
|
- /doc/aliases/
|
||||||
groups: ["extras"]
|
weight: 20
|
||||||
groups_weight: 20
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'extras'
|
||||||
---
|
---
|
||||||
|
|
||||||
For people migrating existing published content to Hugo theres a good chance
|
For people migrating existing published content to Hugo theres a good chance
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
---
|
---
|
||||||
title: "Highlighting"
|
title: "Highlighting"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
groups: ["extras"]
|
weight: 15
|
||||||
groups_weight: 15
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'extras'
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo provides the ability for you to highlight source code from within your
|
Hugo provides the ability for you to highlight source code from within your
|
||||||
|
|
|
@ -3,9 +3,11 @@ title: "Permalinks"
|
||||||
date: "2013-11-18"
|
date: "2013-11-18"
|
||||||
aliases:
|
aliases:
|
||||||
- "/doc/permalinks/"
|
- "/doc/permalinks/"
|
||||||
groups: ["extras"]
|
weight: 30
|
||||||
groups_weight: 30
|
|
||||||
notoc: true
|
notoc: true
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'extras'
|
||||||
---
|
---
|
||||||
|
|
||||||
By default, content is laid out into the target `publishdir` (public)
|
By default, content is laid out into the target `publishdir` (public)
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
title: "Shortcodes"
|
title: "Shortcodes"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
aliases: ["/doc/shortcodes/"]
|
aliases: ["/doc/shortcodes/"]
|
||||||
groups: ["extras"]
|
weight: 10
|
||||||
groups_weight: 10
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'extras'
|
||||||
---
|
---
|
||||||
|
|
||||||
Because Hugo uses markdown for its simple content format, however there's a lot
|
Because Hugo uses markdown for its simple content format, however there's a lot
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
---
|
---
|
||||||
title: "Table of Contents"
|
title: "Table of Contents"
|
||||||
date: "2013-07-09"
|
date: "2013-07-09"
|
||||||
groups: ["extras"]
|
weight: 70
|
||||||
groups_weight: 70
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'extras'
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo will automatically parse the markdown for your content and create
|
Hugo will automatically parse the markdown for your content and create
|
||||||
|
|
|
@ -3,9 +3,11 @@ title: "URLs"
|
||||||
date: "2014-01-03"
|
date: "2014-01-03"
|
||||||
aliases:
|
aliases:
|
||||||
- "/doc/urls/"
|
- "/doc/urls/"
|
||||||
groups: ["extras"]
|
weight: 40
|
||||||
groups_weight: 40
|
|
||||||
notoc: true
|
notoc: true
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'extras'
|
||||||
---
|
---
|
||||||
|
|
||||||
## Pretty Urls
|
## Pretty Urls
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
---
|
---
|
||||||
title: "Rendering Indexes"
|
title: "Rendering Taxonomies"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
linktitle: "Displaying"
|
linktitle: "Displaying"
|
||||||
groups: ["indexes"]
|
aliases: ["/indexes/displaying/"]
|
||||||
groups_weight: 20
|
weight: 20
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'taxonomy'
|
||||||
---
|
---
|
||||||
|
|
||||||
## Rendering index values assigned to this content
|
## Rendering index values assigned to this content
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
---
|
---
|
||||||
title: "Index Lists"
|
title: "Taxonomy Lists"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
aliases: ["/doc/indexes/", "/extras/indexes"]
|
aliases: ["/indexes/lists/","/doc/indexes/", "/extras/indexes"]
|
||||||
linktitle: "Lists"
|
linktitle: "Lists"
|
||||||
groups: ["indexes"]
|
weight: 40
|
||||||
groups_weight: 40
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'taxonomy'
|
||||||
---
|
---
|
||||||
|
|
||||||
An index list is a list of all the keys that are contained in the index. When a
|
An index list is a list of all the keys that are contained in the index. When a
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
---
|
---
|
||||||
title: "Ordering Indexes"
|
title: "Ordering Taxonomies"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
linktitle: "Ordering"
|
linktitle: "Ordering"
|
||||||
groups: ["indexes"]
|
aliases: ["/indexes/ordering/"]
|
||||||
groups_weight: 60
|
weight: 60
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'taxonomy'
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo provides the ability to both:
|
Hugo provides the ability to both:
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
---
|
---
|
||||||
title: "Indexes"
|
title: "Taxonomy Overview"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
aliases: ["/doc/indexes/", "/extras/indexes"]
|
aliases: ["/indexes/overview/","/doc/indexes/", "/extras/indexes"]
|
||||||
linktitle: "Overview"
|
weight: 10
|
||||||
groups: ["indexes"]
|
menu:
|
||||||
groups_weight: 10
|
main:
|
||||||
|
parent: 'taxonomy'
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo includes support for user defined groupings of content called indexes.
|
Hugo includes support for user defined groupings of content called indexes.
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
---
|
---
|
||||||
title: "Index Templates"
|
title: "Taxonomy Templates"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
linktitle: "Templates"
|
linktitle: "Templates"
|
||||||
groups: ["indexes"]
|
aliases: ["/indexes/templates/"]
|
||||||
groups_weight: 30
|
weight: 30
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'taxonomy'
|
||||||
---
|
---
|
||||||
|
|
||||||
There are two different templates that the use of indexes will require you to provide.
|
There are two different templates that the use of indexes will require you to provide.
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
---
|
---
|
||||||
title: "404.html Templates"
|
title: "404.html Templates"
|
||||||
date: "2013-08-21"
|
date: "2013-08-21"
|
||||||
|
notoc: true
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'layout'
|
||||||
---
|
---
|
||||||
|
|
||||||
When using Hugo with [github pages](http://pages.github.com/) you can provide
|
When using Hugo with [github pages](http://pages.github.com/) you can provide
|
|
@ -1,8 +1,10 @@
|
||||||
---
|
---
|
||||||
title: "Chrome Templates"
|
title: "Chrome Templates"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
groups: ["layout"]
|
weight: 80
|
||||||
groups_weight: 80
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'layout'
|
||||||
---
|
---
|
||||||
Chrome is a convention to create templates that are used by the other templates
|
Chrome is a convention to create templates that are used by the other templates
|
||||||
throughout the site. There is nothing special about the name "chrome", feel free
|
throughout the site. There is nothing special about the name "chrome", feel free
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
---
|
---
|
||||||
title: "Content Templates"
|
title: "Content Templates"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'layout'
|
||||||
---
|
---
|
||||||
|
|
||||||
Content templates are created in a directory matching the name of the content.
|
Content templates are created in a directory matching the name of the content.
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
title: "Template Functions"
|
title: "Template Functions"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
linktitle: "Template Functions"
|
linktitle: "Template Functions"
|
||||||
groups: ["layout"]
|
weight: 70
|
||||||
groups_weight: 70
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'layout'
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo uses the excellent go html/template library for its template engine.
|
Hugo uses the excellent go html/template library for its template engine.
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
---
|
---
|
||||||
title: "Using Go Templates"
|
title: "Using Go Templates"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
groups: ["layout"]
|
weight: 15
|
||||||
groups_weight: 15
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'layout'
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo uses the excellent [go][] [html/template][gohtmltemplate] library for
|
Hugo uses the excellent [go][] [html/template][gohtmltemplate] library for
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
---
|
---
|
||||||
title: "Homepage Templates"
|
title: "Homepage Templates"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
groups: ["layout"]
|
weight: 30
|
||||||
groups_weight: 30
|
|
||||||
notoc: true
|
notoc: true
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'layout'
|
||||||
---
|
---
|
||||||
|
|
||||||
Home pages are of the type "node" and have all the [node
|
Home pages are of the type "node" and have all the [node
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
---
|
---
|
||||||
title: "Index Templates"
|
title: "Index Templates"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
groups: ["layout"]
|
weight: 50
|
||||||
groups_weight: 50
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'layout'
|
||||||
---
|
---
|
||||||
|
|
||||||
An index template is any template that will be used to render multiple pieces of
|
An index template is any template that will be used to render multiple pieces of
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
---
|
---
|
||||||
title: "RSS (feed) Templates"
|
title: "RSS (feed) Templates"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
groups: ["layout"]
|
weight: 40
|
||||||
groups_weight: 40
|
|
||||||
notoc: "one"
|
notoc: "one"
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'layout'
|
||||||
---
|
---
|
||||||
|
|
||||||
A single RSS template is used to generate all of the RSS content for the entire
|
A single RSS template is used to generate all of the RSS content for the entire
|
||||||
|
|
|
@ -3,8 +3,10 @@ title: "Hugo Templates"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
aliases: ["/doc/templates/"]
|
aliases: ["/doc/templates/"]
|
||||||
linktitle: "Overview"
|
linktitle: "Overview"
|
||||||
groups: ["layout"]
|
weight: 10
|
||||||
groups_weight: 10
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'layout'
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo uses the excellent go html/template library for its template engine.
|
Hugo uses the excellent go html/template library for its template engine.
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
title: "Variables"
|
title: "Variables"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
aliases: ["/doc/variables/"]
|
aliases: ["/doc/variables/"]
|
||||||
groups: ["layout"]
|
weight: 20
|
||||||
groups_weight: 20
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'layout'
|
||||||
---
|
---
|
||||||
|
|
||||||
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
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
---
|
---
|
||||||
title: "Content Views"
|
title: "Content Views"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
groups: ["layout"]
|
weight: 70
|
||||||
groups_weight: 70
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'layout'
|
||||||
---
|
---
|
||||||
|
|
||||||
In addition to the [single content view](/layout/content/), Hugo can render alternative views of
|
In addition to the [single content view](/layout/content/), Hugo can render alternative views of
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
title: "License"
|
title: "License"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
aliases: ["/doc/license/", "/license/"]
|
aliases: ["/doc/license/", "/license/"]
|
||||||
groups: ["meta"]
|
weight: 50
|
||||||
groups_weight: 50
|
menu:
|
||||||
|
right:
|
||||||
|
parent: 'meta'
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo is released under the Simple Public License.
|
Hugo is released under the Simple Public License.
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
title: "Release Notes"
|
title: "Release Notes"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
aliases: ["/doc/release-notes/"]
|
aliases: ["/doc/release-notes/"]
|
||||||
groups: ["meta"]
|
weight: 10
|
||||||
groups_weight: 10
|
menu:
|
||||||
|
right:
|
||||||
|
parent: 'meta'
|
||||||
---
|
---
|
||||||
## **0.10.0** March 1, 2014
|
## **0.10.0** March 1, 2014
|
||||||
* [Syntax highlighting](/extras/highlighting) powered by pygments (**slow**)
|
* [Syntax highlighting](/extras/highlighting) powered by pygments (**slow**)
|
||||||
|
|
|
@ -5,6 +5,9 @@ aliases: ["/doc/roadmap/"]
|
||||||
groups: ["meta"]
|
groups: ["meta"]
|
||||||
groups_weight: 20
|
groups_weight: 20
|
||||||
notoc: true
|
notoc: true
|
||||||
|
menu:
|
||||||
|
right:
|
||||||
|
parent: 'meta'
|
||||||
---
|
---
|
||||||
|
|
||||||
In no particular order, here is what we are working on:
|
In no particular order, here is what we are working on:
|
||||||
|
|
|
@ -2,10 +2,12 @@
|
||||||
title: "Configuring Hugo"
|
title: "Configuring Hugo"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
aliases: ["/doc/configuration/"]
|
aliases: ["/doc/configuration/"]
|
||||||
groups: ['gettingStarted']
|
|
||||||
linktitle: "Configuration"
|
linktitle: "Configuration"
|
||||||
groups_weight: 40
|
weight: 40
|
||||||
notoc: true
|
notoc: true
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'getting started'
|
||||||
---
|
---
|
||||||
|
|
||||||
The directory structure and templates provide the majority of the
|
The directory structure and templates provide the majority of the
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
title: "Installing Hugo"
|
title: "Installing Hugo"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
aliases: ["/doc/installing/"]
|
aliases: ["/doc/installing/"]
|
||||||
groups: ['gettingStarted']
|
weight: 20
|
||||||
groups_weight: 20
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'getting started'
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo is written in Go with support for Windows, Linux, FreeBSD and OSX.
|
Hugo is written in Go with support for Windows, Linux, FreeBSD and OSX.
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
---
|
---
|
||||||
title: "Introduction to Hugo"
|
title: "Introduction to Hugo"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
groups: ['gettingStarted']
|
|
||||||
linktitle: "Introduction"
|
linktitle: "Introduction"
|
||||||
groups_weight: 5
|
weight: 5
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'getting started'
|
||||||
---
|
---
|
||||||
|
|
||||||
## What is Hugo?
|
## What is Hugo?
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
---
|
---
|
||||||
title: "Hugo Quickstart Guide"
|
title: "Hugo Quickstart Guide"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
groups: ['gettingStarted']
|
|
||||||
linktitle: "Quickstart"
|
linktitle: "Quickstart"
|
||||||
groups_weight: 10
|
weight: 10
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'getting started'
|
||||||
---
|
---
|
||||||
|
|
||||||
## Step 1. Install Hugo
|
## Step 1. Install Hugo
|
||||||
|
|
|
@ -2,9 +2,11 @@
|
||||||
title: "Source Directory Organization"
|
title: "Source Directory Organization"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
aliases: ["/doc/source-directory/"]
|
aliases: ["/doc/source-directory/"]
|
||||||
groups: ['gettingStarted']
|
weight: 50
|
||||||
groups_weight: 50
|
|
||||||
notoc: true
|
notoc: true
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'getting started'
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo takes a single directory and uses it as the input for creating a complete website.
|
Hugo takes a single directory and uses it as the input for creating a complete website.
|
||||||
|
|
|
@ -2,9 +2,11 @@
|
||||||
title: "Using Hugo"
|
title: "Using Hugo"
|
||||||
date: "2013-07-01"
|
date: "2013-07-01"
|
||||||
aliases: ["/doc/usage/"]
|
aliases: ["/doc/usage/"]
|
||||||
groups: ['gettingStarted']
|
weight: 30
|
||||||
groups_weight: 30
|
|
||||||
notoc: true
|
notoc: true
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'getting started'
|
||||||
---
|
---
|
||||||
|
|
||||||
Make sure either hugo is in your path or provide a path to it.
|
Make sure either hugo is in your path or provide a path to it.
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
---
|
---
|
||||||
title: "Hosting a Blog on GitHub Pages"
|
title: "Hosting a Blog on GitHub Pages"
|
||||||
date: "2014-03-21"
|
date: "2014-03-21"
|
||||||
groups: ["tutorials"]
|
weight: 10
|
||||||
groups_weight: 10
|
|
||||||
author: "Spencer Lyon"
|
author: "Spencer Lyon"
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'tutorials'
|
||||||
---
|
---
|
||||||
|
|
||||||
## Intro
|
## Intro
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
---
|
---
|
||||||
title: "MathJax Support"
|
title: "MathJax Support"
|
||||||
date: "2014-03-20"
|
date: "2014-03-20"
|
||||||
groups: ["tutorials"]
|
weight: 10
|
||||||
groups_weight: 10
|
|
||||||
author: "Spencer Lyon"
|
author: "Spencer Lyon"
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'tutorials'
|
||||||
---
|
---
|
||||||
|
|
||||||
## What is MathJax?
|
## What is MathJax?
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
---
|
---
|
||||||
title: "Migrate to Hugo from Jekyll"
|
title: "Migrate to Hugo from Jekyll"
|
||||||
date: "2014-03-10"
|
date: "2014-03-10"
|
||||||
groups: ["tutorials"]
|
weight: 10
|
||||||
groups_weight: 10
|
menu:
|
||||||
|
main:
|
||||||
|
parent: 'tutorials'
|
||||||
---
|
---
|
||||||
|
|
||||||
## Move static content to `static`
|
## Move static content to `static`
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
|
||||||
<!-- Brand and toggle get grouped for better mobile display -->
|
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
<span class="sr-only">Toggle navigation</span>
|
||||||
|
@ -13,73 +11,41 @@
|
||||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||||
<div class="collapse navbar-collapse navbar-ex1-collapse">
|
<div class="collapse navbar-collapse navbar-ex1-collapse">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
<li class="dropdown">
|
{{ $currentNode := . }}
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Getting Started <b class="caret"></b></a>
|
{{ range .Site.Menus.main }}
|
||||||
<ul class="dropdown-menu">
|
{{ if .HasChildren }}
|
||||||
{{ range $key, $value := .Site.Indexes.groups.gettingstarted.Pages }}
|
<li class="dropdown{{if $currentNode.HasMenuCurrent "main" . }} active-child{{end}}">
|
||||||
<li hugo-nav="{{$value.RelPermalink}}"><a href="{{$value.Permalink}}"> {{ $value.LinkTitle }} </a> </li>
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{.Name}} <b class="caret"></b></a>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
{{ range .Children }}
|
||||||
|
<li{{if $currentNode.IsMenuCurrent "main" .Name}} class="active"{{end}}><a href="{{.Url}}"> {{ .Name }} </a> </li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
{{else}}
|
||||||
<li class="dropdown">
|
<li>
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Content <b class="caret"></b></a>
|
<a href="{{.Url}}"> {{ .Name }} </a>
|
||||||
<ul class="dropdown-menu">
|
{{end}}
|
||||||
{{ range $key, $value := .Site.Indexes.groups.content.Pages }}
|
</li>
|
||||||
<li hugo-nav="{{$value.RelPermalink}}"><a href="{{$value.Permalink}}"> {{ $value.LinkTitle }} </a> </li>
|
{{end}}
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Layout <b class="caret"></b></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
{{ range $key, $value := .Site.Indexes.groups.layout.Pages }}
|
|
||||||
<li hugo-nav="{{$value.RelPermalink}}"><a href="{{$value.Permalink}}"> {{ $value.LinkTitle }} </a> </li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Indexes <b class="caret"></b></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
{{ range $key, $value := .Site.Indexes.groups.indexes.Pages }}
|
|
||||||
<li hugo-nav="{{$value.RelPermalink}}"><a href="{{$value.Permalink}}"> {{ $value.LinkTitle }} </a> </li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Extras <b class="caret"></b></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
{{ range $key, $value := .Site.Indexes.groups.extras.Pages }}
|
|
||||||
<li hugo-nav="{{$value.RelPermalink}}"><a href="{{$value.Permalink}}"> {{ $value.LinkTitle }} </a> </li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Tutorials <b class="caret"></b></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
{{ range $key, $value := .Site.Indexes.groups.tutorials.Pages }}
|
|
||||||
<li hugo-nav="{{$value.RelPermalink}}"><a href="{{$value.Permalink}}"> {{ $value.LinkTitle }} </a> </li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Community <b class="caret"></b></a>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li hugo-nav="showcase"><a href="/showcase"> Showcase </a> </li>
|
|
||||||
{{ range $key, $value := .Site.Indexes.groups.community.Pages }}
|
|
||||||
<li hugo-nav="{{$value.RelPermalink}}"><a href="{{$value.Permalink}}"> {{ $value.LinkTitle }} </a> </li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
<li class="dropdown">
|
{{ $currentNode := . }}
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Meta <b class="caret"></b></a>
|
{{ $menu := "right"}}
|
||||||
<ul class="dropdown-menu">
|
{{ range .Site.Menus.right }}
|
||||||
{{ range $key, $value := .Site.Indexes.groups.meta.Pages }}
|
{{ if .HasChildren }}
|
||||||
<li hugo-nav="{{$value.RelPermalink}}"><a href="{{$value.Permalink}}"> {{ $value.LinkTitle }} </a> </li>
|
<li class="dropdown{{if $currentNode.HasMenuCurrent $menu . }} active-child{{end}}">
|
||||||
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{.Name}} <b class="caret"></b></a>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
{{ range .Children }}
|
||||||
|
<li{{if $currentNode.IsMenuCurrent $menu .Name}} class="active"{{end}}><a href="{{.Url}}"> {{ .Name }} </a> </li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
{{else}}
|
||||||
|
<li>
|
||||||
|
<a href="{{.Url}}"> {{ .Name }} </a>
|
||||||
|
{{end}}
|
||||||
|
</li>
|
||||||
|
{{end}}
|
||||||
<li><a href="http://github.com/spf13/hugo/releases"><i class="icon-arrow-down "> </i></a></li>
|
<li><a href="http://github.com/spf13/hugo/releases"><i class="icon-arrow-down "> </i></a></li>
|
||||||
<li><a href="http://github.com/spf13/hugo"><i class="icon-octocat icon-2x"> </i></a></li>
|
<li><a href="http://github.com/spf13/hugo"><i class="icon-octocat icon-2x"> </i></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue