diff options
author | spf13 <[email protected]> | 2013-10-25 18:42:46 -0400 |
---|---|---|
committer | spf13 <[email protected]> | 2013-10-25 18:42:46 -0400 |
commit | 5003f7f7af21db953776c0cd7d672e957a1cc77e (patch) | |
tree | c10c2c532a01566423c02f61da65648b355508f0 | |
parent | d20b41a2cf5e1f88408de54c58a2db06926987fc (diff) | |
download | hugo-5003f7f7af21db953776c0cd7d672e957a1cc77e.tar.gz hugo-5003f7f7af21db953776c0cd7d672e957a1cc77e.zip |
Docs menu now powered by indexes.. converting some of the content to use this.
-rw-r--r-- | docs/config.yaml | 1 | ||||
-rw-r--r-- | docs/content/overview/configuration.md | 3 | ||||
-rw-r--r-- | docs/content/overview/installing.md | 2 | ||||
-rw-r--r-- | docs/content/overview/quickstart.md | 3 | ||||
-rw-r--r-- | docs/content/overview/source-directory.md | 2 | ||||
-rw-r--r-- | docs/content/overview/usage.md | 2 | ||||
-rw-r--r-- | docs/layouts/chrome/header.html | 4 | ||||
-rw-r--r-- | docs/layouts/chrome/menu.html | 12 |
8 files changed, 21 insertions, 8 deletions
diff --git a/docs/config.yaml b/docs/config.yaml index ff2577f0b..7b57d5b6d 100644 --- a/docs/config.yaml +++ b/docs/config.yaml @@ -1,4 +1,5 @@ indexes: tag: 'tags' + group: 'groups' baseurl: 'http://hugo.spf13.com' ... diff --git a/docs/content/overview/configuration.md b/docs/content/overview/configuration.md index 84790fdab..7113c2581 100644 --- a/docs/content/overview/configuration.md +++ b/docs/content/overview/configuration.md @@ -2,6 +2,9 @@ title: "Configuring Hugo" date: "2013-07-01" aliases: ["/doc/configuration/"] +groups: ['gettingStarted'] +linktitle: "Configuration" +groups_weight: 20 --- The directory structure and templates provide the majority of the diff --git a/docs/content/overview/installing.md b/docs/content/overview/installing.md index 90456111d..721b66eb9 100644 --- a/docs/content/overview/installing.md +++ b/docs/content/overview/installing.md @@ -2,6 +2,8 @@ title: "Installing Hugo" date: "2013-07-01" aliases: ["/doc/installing/"] +groups: ['gettingStarted'] +groups_weight: 40 --- Hugo is written in GoLang with support for Windows, Linux, FreeBSD and OSX. diff --git a/docs/content/overview/quickstart.md b/docs/content/overview/quickstart.md index 6fdc589de..87fd465f1 100644 --- a/docs/content/overview/quickstart.md +++ b/docs/content/overview/quickstart.md @@ -1,6 +1,9 @@ --- title: "Hugo Quickstart Guide" date: "2013-07-01" +groups: ['gettingStarted'] +linktitle: "Quickstart" +groups_weight: 50 --- ## Step 1. Install Hugo diff --git a/docs/content/overview/source-directory.md b/docs/content/overview/source-directory.md index 12a703536..4b07cbd6f 100644 --- a/docs/content/overview/source-directory.md +++ b/docs/content/overview/source-directory.md @@ -2,6 +2,8 @@ title: "Source Directory Organization" date: "2013-07-01" aliases: ["/doc/source-directory/"] +groups: ['gettingStarted'] +groups_weight: 10 --- Hugo takes a single directory and uses it as the input for creating a complete website. diff --git a/docs/content/overview/usage.md b/docs/content/overview/usage.md index e1ebe2243..23144b80b 100644 --- a/docs/content/overview/usage.md +++ b/docs/content/overview/usage.md @@ -2,6 +2,8 @@ title: "Using Hugo" date: "2013-07-01" aliases: ["/doc/usage/"] +groups: ['gettingStarted'] +groups_weight: 30 --- Make sure either hugo is in your path or provide a path to it. diff --git a/docs/layouts/chrome/header.html b/docs/layouts/chrome/header.html index 0fc8b2b82..07477d921 100644 --- a/docs/layouts/chrome/header.html +++ b/docs/layouts/chrome/header.html @@ -9,8 +9,8 @@ <body> <div class="container"> <div class="row"> - <div class="col-md-3 well"> - <div> + <div class="col-md-3 well" style="margin-top:1.8em;padding-top:0px;"> + <div > <h1><a href="/">Hugo</a></h1> <p>A Fast and Flexible Static Site Generator built with love by <a href="http://spf13.com">spf13</a> and <a diff --git a/docs/layouts/chrome/menu.html b/docs/layouts/chrome/menu.html index 2e74a42c6..0325deb39 100644 --- a/docs/layouts/chrome/menu.html +++ b/docs/layouts/chrome/menu.html @@ -1,10 +1,9 @@ - <ul class="nav nav-stacked"> + <ul class="nav nav-stacked nav-pills"> <li class="text-muted"><h4>Getting Started</h4></li> - <li hugo-nav="/overview/quickstart"> <a href="/overview/quickstart">Quick Start</a></li> - <li hugo-nav="/overview/installing"> <a href="/overview/installing">Installing Hugo</a></li> - <li hugo-nav="/overview/usage"> <a href="/overview/usage">Usage</a> </li> - <li hugo-nav="/overview/configuration"> <a href="/overview/configuration">Configuration</a></li> - <li hugo-nav="/overview/source-directory"> <a href="/overview/source-directory">Source Directory Layout</a></li> + + {{ range $key, $value := .Site.Indexes.groups.gettingstarted.Pages }} + <li hugo-nav="{{$value.RelPermalink}}"><a href="{{$value.Permalink}}"> {{ $value.LinkTitle }} </a> </li> + {{ end }} <li class="divider"></li> <li class="text-muted"><h4>Layout</h4></li> @@ -33,6 +32,7 @@ <li hugo-nav="/extras/indexes/category"> <a href="/extras/indexes/category">Example Index - Category</a></li> <!--<li> <a href="/extras/indexes/series">Example Index - Series</a></li>--> <li class="divider"></li> + <li class="text-muted"><h4>Meta</h4></li> <li hugo-nav="/meta/release-notes"> <a href="/meta/release-notes">Release Notes</a></li> <li hugo-nav="/meta/roadmap"> <a href="/meta/roadmap">Roadmap</a> </li> |