From f8190777f2c0ad01ae7972b00669aeb15e10121b Mon Sep 17 00:00:00 2001 From: Cameron Moore Date: Sun, 11 Dec 2016 18:55:36 -0600 Subject: [PATCH] docs: Cleanup Extras menu ordering --- docs/content/extras/aliases.md | 5 ++--- docs/content/extras/analytics.md | 1 - docs/content/extras/builders.md | 1 - docs/content/extras/comments.md | 1 - docs/content/extras/crossreferences.md | 3 +-- docs/content/extras/datadrivencontent.md | 3 +-- docs/content/extras/datafiles.md | 3 +-- docs/content/extras/highlighting.md | 3 +-- docs/content/extras/livereload.md | 3 +-- docs/content/extras/localfiles.md | 5 ++--- docs/content/extras/menus.md | 3 +-- docs/content/extras/pagination.md | 5 ++--- docs/content/extras/permalinks.md | 5 ++--- docs/content/extras/robots-txt.md | 5 ++--- docs/content/extras/scratch.md | 7 +++---- docs/content/extras/shortcodes.md | 5 ++--- docs/content/extras/toc.md | 3 +-- docs/content/extras/urls.md | 5 ++--- 18 files changed, 24 insertions(+), 42 deletions(-) diff --git a/docs/content/extras/aliases.md b/docs/content/extras/aliases.md index 252c348cc..00f014ca0 100644 --- a/docs/content/extras/aliases.md +++ b/docs/content/extras/aliases.md @@ -9,9 +9,8 @@ menu: main: parent: extras next: /extras/analytics -prev: /taxonomies/ordering +prev: /taxonomies/methods title: Aliases -weight: 10 --- For people migrating existing published content to Hugo, there's a good chance you need a mechanism to handle redirecting old URLs. @@ -101,4 +100,4 @@ You may customize this alias page by creating an alias.html template in the layouts folder of your site. In this case, the data passed to the template is * Permalink - the link to the page being aliased -* Page - the Page data for the page being aliased \ No newline at end of file +* Page - the Page data for the page being aliased diff --git a/docs/content/extras/analytics.md b/docs/content/extras/analytics.md index 112671df5..31f44c7bf 100644 --- a/docs/content/extras/analytics.md +++ b/docs/content/extras/analytics.md @@ -7,7 +7,6 @@ menu: next: /extras/builders prev: /extras/aliases title: Analytics in Hugo -weight: 15 --- Hugo ships with prebuilt internal templates for Google Analytics tracking, including both synchronous and asynchronous tracking codes. diff --git a/docs/content/extras/builders.md b/docs/content/extras/builders.md index 1e5fcabb7..707eff306 100644 --- a/docs/content/extras/builders.md +++ b/docs/content/extras/builders.md @@ -8,7 +8,6 @@ menu: next: /extras/comments prev: /extras/analytics title: Hugo Builders -weight: 20 --- Hugo provides the functionality to quickly get a site, theme or page diff --git a/docs/content/extras/comments.md b/docs/content/extras/comments.md index 0dabd1c31..113fde953 100644 --- a/docs/content/extras/comments.md +++ b/docs/content/extras/comments.md @@ -8,7 +8,6 @@ menu: next: /extras/crossreferences prev: /extras/builders title: Comments in Hugo -weight: 30 --- As Hugo is a static site generator, the content produced is static and doesn’t interact with the users. The most common interaction people ask for is comment capability. diff --git a/docs/content/extras/crossreferences.md b/docs/content/extras/crossreferences.md index 87424bd6b..9f3e7ef23 100644 --- a/docs/content/extras/crossreferences.md +++ b/docs/content/extras/crossreferences.md @@ -4,11 +4,10 @@ date: 2014-11-25 menu: main: parent: extras -next: /extras/livereload +next: /extras/robots-txt prev: /extras/comments title: Cross-References toc: true -weight: 40 --- Hugo makes it easy to link documents together with the `ref` and `relref` shortcodes. These shortcodes are also used to safely provide links to headings inside of your content, whether across documents or within a document. The only difference between `ref` and `relref` is whether the resulting URL is absolute (`http://1.com/about/`) or relative (`/about/`). diff --git a/docs/content/extras/datadrivencontent.md b/docs/content/extras/datadrivencontent.md index fc7e18cf8..e5c6c9130 100644 --- a/docs/content/extras/datadrivencontent.md +++ b/docs/content/extras/datadrivencontent.md @@ -6,10 +6,9 @@ date: 2015-02-14 menu: main: parent: extras -next: /extras/highlighting +next: /extras/gitinfo prev: /extras/datafiles title: Data-driven Content -weight: 91 toc: true --- diff --git a/docs/content/extras/datafiles.md b/docs/content/extras/datafiles.md index 4adb68fcb..63dae25ec 100644 --- a/docs/content/extras/datafiles.md +++ b/docs/content/extras/datafiles.md @@ -7,9 +7,8 @@ menu: main: parent: extras next: /extras/datadrivencontent -prev: /extras/scratch +prev: /extras/robots-txt title: Data Files -weight: 90 --- In addition to the [built-in variables](/templates/variables/) available from Hugo, you can specify your own custom data that can be accessed via templates or shortcodes. diff --git a/docs/content/extras/highlighting.md b/docs/content/extras/highlighting.md index 7f7eef1e6..601373deb 100644 --- a/docs/content/extras/highlighting.md +++ b/docs/content/extras/highlighting.md @@ -7,9 +7,8 @@ menu: main: parent: extras next: /extras/toc -prev: /extras/datadrivencontent +prev: /extras/shortcodes title: Syntax Highlighting -weight: 90 toc: true --- diff --git a/docs/content/extras/livereload.md b/docs/content/extras/livereload.md index a69e7af92..cb4047636 100644 --- a/docs/content/extras/livereload.md +++ b/docs/content/extras/livereload.md @@ -5,9 +5,8 @@ menu: main: parent: extras next: /extras/menus -prev: /extras/crossreferences +prev: /extras/gitinfo title: LiveReload -weight: 50 --- Hugo may not be the first static site generator to utilize LiveReload diff --git a/docs/content/extras/localfiles.md b/docs/content/extras/localfiles.md index d89ead098..28b611870 100644 --- a/docs/content/extras/localfiles.md +++ b/docs/content/extras/localfiles.md @@ -6,11 +6,10 @@ date: 2015-06-12 menu: main: parent: extras -next: /community/mailing-list +next: /extras/urls notoc: true -prev: /extras/urls +prev: /extras/toc title: Traversing Local Files -weight: 110 --- ## Traversing Local Files diff --git a/docs/content/extras/menus.md b/docs/content/extras/menus.md index 937c0bb8a..baa21dea6 100644 --- a/docs/content/extras/menus.md +++ b/docs/content/extras/menus.md @@ -5,10 +5,9 @@ toc: true menu: main: parent: extras -next: /extras/permalinks +next: /extras/pagination prev: /extras/livereload title: Menus -weight: 60 --- Hugo has a simple yet powerful menu system that permits content to be diff --git a/docs/content/extras/pagination.md b/docs/content/extras/pagination.md index 6e7c584a6..1f20e7e5a 100644 --- a/docs/content/extras/pagination.md +++ b/docs/content/extras/pagination.md @@ -6,10 +6,9 @@ date: 2014-01-01 menu: main: parent: extras -next: /extras/scratch -prev: /extras/shortcodes +next: /extras/permalinks +prev: /extras/menus title: Pagination -weight: 80 --- Hugo supports pagination for the home page, sections and taxonomies. It's built to be easy use, but with loads of flexibility when needed. The real power shines when you combine it with [`where`](/templates/functions/), with its SQL-like operators, `first` and others --- you can even [order the content](/templates/list/) the way you've become used to with Hugo. diff --git a/docs/content/extras/permalinks.md b/docs/content/extras/permalinks.md index 45888b959..4249f23a4 100644 --- a/docs/content/extras/permalinks.md +++ b/docs/content/extras/permalinks.md @@ -6,11 +6,10 @@ date: 2013-11-18 menu: main: parent: extras -next: /extras/shortcodes +next: /extras/scratch notoc: true -prev: /extras/menus +prev: /extras/pagination title: Permalinks -weight: 70 --- By default, content is laid out into the target `publishdir` (public) diff --git a/docs/content/extras/robots-txt.md b/docs/content/extras/robots-txt.md index 9122ae9d8..2e6e18ea4 100644 --- a/docs/content/extras/robots-txt.md +++ b/docs/content/extras/robots-txt.md @@ -4,10 +4,9 @@ date: 2015-12-08 menu: main: parent: extras -next: /community/mailing-list -prev: /extras/urls +next: /extras/datafiles +prev: /extras/crossreferences title: Custom robots.txt -weight: 120 --- Hugo can generated a customized [robots.txt](http://www.robotstxt.org/) in the diff --git a/docs/content/extras/scratch.md b/docs/content/extras/scratch.md index d17c3f051..ae6ea95b6 100644 --- a/docs/content/extras/scratch.md +++ b/docs/content/extras/scratch.md @@ -6,10 +6,9 @@ date: 2015-01-22 menu: main: parent: extras -next: /extras/datafiles -prev: /extras/pagination +next: /extras/shortcodes +prev: /extras/permalinks title: Scratch -weight: 80 --- `Scratch` -- a "scratchpad" for your page-scoped variables. In most cases you can do well without `Scratch`, but there are some use cases that aren't solvable with Go's templates without `Scratch`'s help, due to scoping issues. @@ -21,7 +20,7 @@ weight: 80 * `SetInMap` takes a `key`, `mapKey` and `value` * `GetSortedMapValues` returns array of values from `key` sorted by `mapKey` -`Set` and `SetInMap` can store values of any type. +`Set` and `SetInMap` can store values of any type. For single values, `Add` accepts values that support Go's `+` operator. If the first `Add` for a key is an array or slice, the following adds will be appended to that list. diff --git a/docs/content/extras/shortcodes.md b/docs/content/extras/shortcodes.md index 8196446b5..39902e66e 100644 --- a/docs/content/extras/shortcodes.md +++ b/docs/content/extras/shortcodes.md @@ -6,10 +6,9 @@ date: 2013-07-01 menu: main: parent: extras -next: /extras/pagination -prev: /extras/permalinks +next: /extras/highlighting +prev: /extras/scratch title: Shortcodes -weight: 80 toc: false --- diff --git a/docs/content/extras/toc.md b/docs/content/extras/toc.md index edc9b0788..56e093ba7 100644 --- a/docs/content/extras/toc.md +++ b/docs/content/extras/toc.md @@ -4,10 +4,9 @@ date: 2013-07-09 menu: main: parent: extras -next: /extras/urls +next: /extras/localfiles prev: /extras/highlighting title: Table of Contents -weight: 100 --- Hugo will automatically parse the Markdown for your content and create diff --git a/docs/content/extras/urls.md b/docs/content/extras/urls.md index af540088d..487e685f3 100644 --- a/docs/content/extras/urls.md +++ b/docs/content/extras/urls.md @@ -6,11 +6,10 @@ date: 2014-01-03 menu: main: parent: extras -next: /extras/robots-txt +next: /community/mailing-list notoc: true -prev: /extras/toc +prev: /extras/localfiles title: URLs -weight: 110 --- ## Pretty URLs