hugo/helpers
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
..
content.go Add site-wide/per-page [blackfriday] extensions option 2015-01-26 09:55:37 +01:00
content_test.go Moved a test regarding a content.go function to a new test file content_test.go. 2015-01-09 12:42:13 +01:00
general.go Wrap comments helpers package to fit 80-column width 2014-12-26 08:07:03 -07:00
general_test.go Add more tests to general helper 2015-01-20 18:13:47 +01:00
path.go Minor polish in path/url 2015-01-20 20:45:03 +01:00
path_test.go Fix various Windows-issues 2014-12-09 09:43:15 -05:00
pygments.go Wrap comments helpers package to fit 80-column width 2014-12-26 08:07:03 -07:00
url.go Add pagination support for home page, sections and taxonomies 2015-01-26 12:59:37 +01:00
url_test.go Fix RelPermalink() and Urls in menus vs canonifyUrls 2015-01-23 14:13:00 +01:00