Skip to content

Commit

Permalink
Add documentation about pagination setting for grid
Browse files Browse the repository at this point in the history
Fixes #164

Signed-off-by: Matt Stratton <[email protected]>
  • Loading branch information
mattstratton committed Mar 7, 2018
1 parent 5700781 commit cd21fcf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- [Host Social Parameters](#host-social-parameters)
- [Link Parameters](#link-parameters)
- [A note about `BaseURL`](#a-note-about-baseurl)
- [Pagination setting with grid layout](#pagination-setting-with-grid-layout)
- [Permalinks](#permalinks)
- [Menus](#menus)
- [Episodes](#episodes)
Expand Down Expand Up @@ -149,6 +150,13 @@ The idetifier for the link simply needs to be unique; it's not used anywhere els

This theme is fairly dependent upon a proper `BaseURL` being set in the `config.toml`. This has to do with how the feed is generated as well as some of the social metadata (these things cannot be relative URL's). I'm fully aware that this can cause issues with some build systems, and I'm trying to work on a good solution for this. This must end in a slash. Example: `https://www.arresteddevops.com/`

### Pagination setting with grid layout

If you are using the grid layout, you need to ensure that your pagination is set to a multiple of 3. For example, in your config file:

```
paginate = "9"
```

### Permalinks

Expand Down
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ theme = "castanet"
googleAnalytics = "UA-100789009-1"
disqusShortname = "arresteddevops"
themesdir = "../.."
paginate = "9"


[permalinks]
Expand Down

0 comments on commit cd21fcf

Please sign in to comment.