Docs menu now powered by indexes.. converting some of the content to use this.
authorspf13 <steve.francia@gmail.com>
Fri, 25 Oct 2013 22:42:46 +0000 (18:42 -0400)
committerspf13 <steve.francia@gmail.com>
Fri, 25 Oct 2013 22:42:46 +0000 (18:42 -0400)
docs/config.yaml
docs/content/overview/configuration.md
docs/content/overview/installing.md
docs/content/overview/quickstart.md
docs/content/overview/source-directory.md
docs/content/overview/usage.md
docs/layouts/chrome/header.html
docs/layouts/chrome/menu.html

index ff2577f0b530daa7034c1d9157b7adf1f06b451b..7b57d5b6d3b6d0c686c11c282249912d0c6ae2bd 100644 (file)
@@ -1,4 +1,5 @@
 indexes:
   tag: 'tags'
+  group: 'groups'
 baseurl: 'http://hugo.spf13.com'
 ...
index 84790fdab448d6c581dd465a68090280586119c3..7113c2581aba56c307495a83adaa5136420d1bd5 100644 (file)
@@ -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
index 90456111db42a054823cd35a896997eb626bc698..721b66eb92d0099add83b65a8d80d1635a98da95 100644 (file)
@@ -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.
index 6fdc589de879a34e52e0ee1d4b4c702cc32a3ae8..87fd465f1793ee6522778f8c0d8662708c58f003 100644 (file)
@@ -1,6 +1,9 @@
 ---
 title: "Hugo Quickstart Guide"
 date: "2013-07-01"
+groups: ['gettingStarted']
+linktitle: "Quickstart"
+groups_weight: 50
 ---
 
 ## Step 1. Install Hugo
index 12a7035367c21c75394b015d155a73bff3bd5ff9..4b07cbd6f10d2d79b27fedf51ac1d181eedc05f6 100644 (file)
@@ -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.
index e1ebe2243a5ed1bedcf14956528a90db2eba3ce6..23144b80bd7f9527a4cc19221ccd36b09fbd0707 100644 (file)
@@ -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.
index 0fc8b2b822bed0066eddf197261c81f3e3079868..07477d9210735f48ee16acce672637b3bae3c76d 100644 (file)
@@ -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
index 2e74a42c6c52f5e59a88aa0d2bd945a4aac87e34..0325deb39df67232a44bce86ae4d8d3dd6f62595 100644 (file)
@@ -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>