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

This commit is contained in:
spf13 2013-10-25 18:42:46 -04:00
parent d20b41a2cf
commit 5003f7f7af
8 changed files with 21 additions and 8 deletions

View file

@ -1,4 +1,5 @@
indexes: indexes:
tag: 'tags' tag: 'tags'
group: 'groups'
baseurl: 'http://hugo.spf13.com' baseurl: 'http://hugo.spf13.com'
... ...

View file

@ -2,6 +2,9 @@
title: "Configuring Hugo" title: "Configuring Hugo"
date: "2013-07-01" date: "2013-07-01"
aliases: ["/doc/configuration/"] aliases: ["/doc/configuration/"]
groups: ['gettingStarted']
linktitle: "Configuration"
groups_weight: 20
--- ---
The directory structure and templates provide the majority of the The directory structure and templates provide the majority of the

View file

@ -2,6 +2,8 @@
title: "Installing Hugo" title: "Installing Hugo"
date: "2013-07-01" date: "2013-07-01"
aliases: ["/doc/installing/"] aliases: ["/doc/installing/"]
groups: ['gettingStarted']
groups_weight: 40
--- ---
Hugo is written in GoLang with support for Windows, Linux, FreeBSD and OSX. Hugo is written in GoLang with support for Windows, Linux, FreeBSD and OSX.

View file

@ -1,6 +1,9 @@
--- ---
title: "Hugo Quickstart Guide" title: "Hugo Quickstart Guide"
date: "2013-07-01" date: "2013-07-01"
groups: ['gettingStarted']
linktitle: "Quickstart"
groups_weight: 50
--- ---
## Step 1. Install Hugo ## Step 1. Install Hugo

View file

@ -2,6 +2,8 @@
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']
groups_weight: 10
--- ---
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.

View file

@ -2,6 +2,8 @@
title: "Using Hugo" title: "Using Hugo"
date: "2013-07-01" date: "2013-07-01"
aliases: ["/doc/usage/"] aliases: ["/doc/usage/"]
groups: ['gettingStarted']
groups_weight: 30
--- ---
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.

View file

@ -9,8 +9,8 @@
<body> <body>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-md-3 well"> <div class="col-md-3 well" style="margin-top:1.8em;padding-top:0px;">
<div> <div >
<h1><a href="/">Hugo</a></h1> <h1><a href="/">Hugo</a></h1>
<p>A Fast and Flexible Static Site Generator <p>A Fast and Flexible Static Site Generator
built with love by <a href="http://spf13.com">spf13</a> and <a built with love by <a href="http://spf13.com">spf13</a> and <a

View 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 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> {{ range $key, $value := .Site.Indexes.groups.gettingstarted.Pages }}
<li hugo-nav="/overview/usage"> <a href="/overview/usage">Usage</a> </li> <li hugo-nav="{{$value.RelPermalink}}"><a href="{{$value.Permalink}}"> {{ $value.LinkTitle }} </a> </li>
<li hugo-nav="/overview/configuration"> <a href="/overview/configuration">Configuration</a></li> {{ end }}
<li hugo-nav="/overview/source-directory"> <a href="/overview/source-directory">Source Directory Layout</a></li>
<li class="divider"></li> <li class="divider"></li>
<li class="text-muted"><h4>Layout</h4></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 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> <a href="/extras/indexes/series">Example Index - Series</a></li>-->
<li class="divider"></li> <li class="divider"></li>
<li class="text-muted"><h4>Meta</h4></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/release-notes"> <a href="/meta/release-notes">Release Notes</a></li>
<li hugo-nav="/meta/roadmap"> <a href="/meta/roadmap">Roadmap</a> </li> <li hugo-nav="/meta/roadmap"> <a href="/meta/roadmap">Roadmap</a> </li>