hugo/commands
bep 37445bc6aa Add pagination support for home page, sections and taxonomies
Two new configuration properties, `Paginate` (default `0`) and `PaginatePath` (default `page`) are added.

Setting `paginate` to a positive value will split the list pages for the home page, sections and taxonomies into chunks of size of the `paginate` property.

A `.Paginator` is provided to help building a pager menu.

There are two ways to configure a `.Paginator`:

1. The simplest way is just to call `.Paginator.Pages` from a template. It will contain the pages for "that page" (`.Data.Pages` will (like today) contain all the pages).
2. Select a sub-set of the pages with the available template functions and pass the slice to `.Paginate` : `{{ range (.Paginate (where .Data.Pages "Type" "post")).Pages }}`

**NOTE:** For a given Node, it's one of the options above. It's perfectly legitimate to iterate over the same pager more than once, but it's static and cannot change.

The `.Paginator` contains enough information to build a full-blown paginator interface.

The pages are built on the form (note: BLANK means no value, i.e. home page):

```
[SECTION/TAXONOMY/BLANK]/index.html
[SECTION/TAXONOMY/BLANK]/page/1/index.html => redirect to  [SECTION/TAXONOMY/BLANK]/index.html
[SECTION/TAXONOMY/BLANK]/page/2/index.html
....
```

Fixes #96
2015-01-26 12:59:37 +01:00
..
benchmark.go Fix long descriptions of benchmark and serve commands 2014-12-24 04:40:48 -07:00
check.go Hugo config abstracted into a general purpose config library called "Viper". 2014-04-05 01:40:33 -04:00
convert.go Added a new command hugo list drafts and hugo list future 2014-11-19 16:24:30 -05:00
hugo.go Add pagination support for home page, sections and taxonomies 2015-01-26 12:59:37 +01:00
limit_darwin.go Adding support for logging & verbose logging. Consolidation of error handling. Integration of jWalterWeatherman library. Fixed #137 2014-03-31 13:23:34 -04:00
limit_others.go Fix build 2014-02-18 18:40:55 -05:00
list.go Added a new command hugo list drafts and hugo list future 2014-11-19 16:24:30 -05:00
new.go Commented commands package 2014-12-12 00:05:02 +06:00
server.go Revert "Try to fix mysterious test failures on Travis" 2015-01-22 17:46:47 -07:00
server_test.go Update TestFixUrl() to expect BaseUrl to have trailing / 2015-01-16 03:16:36 -07:00
version.go Added top level .Hugo variable with version, commit and generator information + docs 2015-01-19 01:22:23 +01:00