shithub: hugo

Download patch

ref: 5003f7f7af21db953776c0cd7d672e957a1cc77e
parent: d20b41a2cf5e1f88408de54c58a2db06926987fc
author: spf13 <[email protected]>
date: Fri Oct 25 14:42:46 EDT 2013

Docs menu now powered by indexes.. converting some of the content to use this.

--- a/docs/config.yaml
+++ b/docs/config.yaml
@@ -1,4 +1,5 @@
 indexes:
   tag: 'tags'
+  group: 'groups'
 baseurl: 'http://hugo.spf13.com'
 ...
--- 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
--- 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.
--- 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
--- 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.
--- 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.
--- 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
--- 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>